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

"flagless" arguments without a command #728

Closed
ahmadnassri opened this issue Dec 7, 2016 · 0 comments
Closed

"flagless" arguments without a command #728

ahmadnassri opened this issue Dec 7, 2016 · 0 comments

Comments

@ahmadnassri
Copy link

I have the exact same question as #333, specifically: how to add "positional arguments" to root level without using any .command() calls ...

e.g.
yargs
  .usage('Usage: $0 <name> <path>')
  .help()
  .argv

the comment from #333 suggested this would be solved in v4.0, but I cannot see how in the docs?

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

2 participants