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

Add choices to arguments and options #435

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

nkpln
Copy link

@nkpln nkpln commented Aug 26, 2024

Implements #89.

Add choices to arguments and options. The choices are listed in the help text in curly braces.
Example:

Description:
  Greets someone

Usage:
  greet [options] [--] <name>

Arguments:
  name                  Who do you want to greet? {Secrus, sdispater}

Options:
  -y, --yell=YELL       If set, the task will yell in uppercase letters [default: "a"] {a, b}
...

Please be aware that this is my very first PR and there might be some newbie mistakes. I very much appreciate any feedback.

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

Successfully merging this pull request may close these issues.

1 participant