Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-hyphenated options fail if hyphens in option value #44

Closed
elldritch opened this issue Aug 16, 2014 · 1 comment
Closed

Non-hyphenated options fail if hyphens in option value #44

elldritch opened this issue Aug 16, 2014 · 1 comment

Comments

@elldritch
Copy link

var yargs = require('yargs');
var argv = yargs
  .demand(2)
  .argv;

executed with node filename.js firstArg second-arg-with-hyphens fails with Not enough non-option arguments: got 1, need at least 2. This failure occurs even when the value is quoted, like so: node filename.js firstArg "second-arg-with-hyphens"

@elldritch
Copy link
Author

Disregard, was clashing with monkey patch from another module. Sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant