multimeric / ArgparsePrompt

Wrapper for the built-in Argparse, allowing missing command-line arguments to be filled in by the user via interactive prompts
GNU General Public License v3.0
11 stars 4 forks source link

support for `choices` flag #4

Open danieleades opened 4 years ago

danieleades commented 4 years ago

in addition to showing a user the default value (if it exists) the user should also be shown the available 'choices' when prompted for a missing arg

multimeric commented 4 years ago

Seems like a reasonable request.

danieleades commented 4 years ago

I might get some time to take a look at this. What version of python are you targeting?

multimeric commented 4 years ago

Nothing in particular, since it's so simple, but I'd like to keep as many 3.X versions compatible as possible.

bwinkers commented 4 years ago

PR created for one possible solution. This blocks the user until they choose a vaid option so it may not be what you wanted. https://github.com/TMiguelT/ArgparsePrompt/pull/7