★ wanayoo — archive 1999 https://github.com/python-cmd2/cmd2/issues/944Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argparse parameter wizard #944

Open
anselor opened this issue Jun 9, 2020 · 5 comments
Open

argparse parameter wizard #944

anselor opened this issue Jun 9, 2020 · 5 comments
Labels

Comments

@anselor
Copy link
Contributor

@anselor anselor commented Jun 9, 2020

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.

@anselor anselor added the proposal label Jun 9, 2020
@tleonhardt
Copy link
Member

@tleonhardt tleonhardt commented Jun 10, 2020

@anselor
I'm not sure I fully grok what you are aiming for here, but I'd say lets cross this bridge when you have that stand-alone project working with the new features you want implemented.

@anselor
Copy link
Contributor Author

@anselor anselor commented Jun 10, 2020

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.

@tleonhardt
Copy link
Member

@tleonhardt tleonhardt commented Jun 10, 2020

@anselor Are your users aware that while they are entering a command and they hit <Tab><Tab>, our argparse support will give them a good hint for what should be entered next?

@anselor
Copy link
Contributor Author

@anselor anselor commented Jun 10, 2020

Yes. Apparently that's too hard.

@tleonhardt
Copy link
Member

@tleonhardt tleonhardt commented Jun 10, 2020

🤯 Get better users?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.