Open seaneagan opened 10 years ago
Hmm, maybe add an option to Command
e.g. bool abbr
which defaults to false, but if true, adds an abbr to each option of the first letter of that option, so long as it is not ambiguous (another option starting with the same letter.
Something like:
http://docs.python.org/2/library/argparse.html#argument-abbreviations-prefix-matching
One question is how it interacts with the existing 'abbr' feature. Possibly the prefix matching could be turned off when 'abbr' is specified. And 'abbr' could be used as a tie breaker when there are 2 options that start with the same character.
This, along with #11 could really drive down the need to use metadata annotations (since 'abbr' can be derived).