cleo icon indicating copy to clipboard operation
cleo copied to clipboard

Add choices to arguments and options

Open nkpln opened this issue 1 year ago • 0 comments

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.

nkpln avatar Aug 26 '24 19:08 nkpln