Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upargparse parameter wizard #944
Comments
|
@anselor |
|
Some of our users have expressed a desire for the tool to walk them through entering in arguments with a sequence of prompts for input. What I'm proposing is to generate the prompts based on the argparse definition for a command and show a menu interface for configuring optional parameters. |
|
@anselor Are your users aware that while they are entering a command and they hit |
|
Yes. Apparently that's too hard. |
|
|
Initially I was going to submit an enhancement ticket to add an optional parameter wizard that, for some commands, can walk the user through all of the required fields and present a menu for optional fields.
Thinking this through some more, I think the enhancements we've made to argparse are generally useful outside of cmd2. What I want to do is to take our current enhanced argparse and automatic completion generation and move it into a separate stand-alone project. Then, in than separate project, implement a wizard feature. Once that's been ironed out, we can can switch cmd2 over to use this library.