Skip to content

Instantly share code, notes, and snippets.

@nexdrew
Created January 12, 2016 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nexdrew/39b23395e778d08f9fdb to your computer and use it in GitHub Desktop.
Save nexdrew/39b23395e778d08f9fdb to your computer and use it in GitHub Desktop.
How to upgrade from yargs 3 to yargs 4

4.x Breaking Changes

  • PR #330: .version() method now expects the version argument to be last instead of first.

    Upgrade: change .version('1.0.0', 'v', 'Print app version') to .version('v', 'Print app version', '1.0.0')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment