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

Positional argument specifications #240

Closed
stevvooe opened this issue Jun 11, 2015 · 2 comments
Closed

Positional argument specifications #240

stevvooe opened this issue Jun 11, 2015 · 2 comments

Comments

@stevvooe
Copy link

I may be missing something in the documentation, but there doesn't seem to be a way to specify positional arguments for each commands. For example, one may want to specify in the help that two arguments are accepted only:

NAME:
   foo - Apply foo to argument bar and optionally a baz

USAGE:
   command foo bar [baz]

This seems like a straightforward addition to the library but I wanted to get feedback before dropping a PR. Python's argparse provides a good example of this done well. Such a feature also provides the benefit that arguments can be pre-validated before proceeding with the command.

@jszwedko
Copy link
Contributor

Work has been started on this over here: #140

@coilysiren
Copy link
Member

Given that this is from last year, I think I'm comfortable closing it 🙂 feel free to re-open / open a new issue / comment in support if there's still interest here!

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

3 participants