If I specify a short and long argument with a boolean default, I get something like:
-u, --upper False
If I specifiy an argument with choices, I get both arguments listed, each with it's own set of (duplicated) choices.
-f {yaml,json}, --format {yaml,json}
It would be better to have both arguments lists, but only one set of choices - something like:
-f, --format {yaml,json}
This is a good observation. However, I'm afraid the help is generated by Argparse. Not sure if we can affect this on Argh level in a sensible way. Please feel free to reopen if you have an idea how to do it.
If I specify a short and long argument with a boolean default, I get something like:
-u, --upper False
If I specifiy an argument with choices, I get both arguments listed, each with it's own set of (duplicated) choices.
-f {yaml,json}, --format {yaml,json}
It would be better to have both arguments lists, but only one set of choices - something like:
-f, --format {yaml,json}
Here is some sample code:
and sample output: