-
Notifications
You must be signed in to change notification settings - Fork 127
Auto completer refactor #718
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
Conversation
…ns to argparse argument values
…tings like enabling tab completion and providing choice generating functions
Rename ACArgumentParser to Cmd2ArgParser
|
PR is open again |
|
This is much nicer than what we have now. I like it a lot. A couple of thoughts:
|
|
@kotfu Thanks for the feedback. Here are my thoughts.
|
|
I'm fine renaming our custom parser to If people use it via the import of |
|
I'll merge this for now and give some thought to the ArgParser/ArgumentParser name choice. |
This PR is large and breaks stuff with the goal of simplifying our API.
Completely overhauled how argparse argument tab completion is defined.
Instead of:
You do:
Also patched argparse functions to enable nargs ranges on all parsers and not just the cmd2 parser.
The changes are documented in the header of argparse_custom.py.