summaryrefslogtreecommitdiff
path: root/cmd2/argparse_custom.py
Commit message (Collapse)AuthorAgeFilesLines
* Added unit tests for CompletionErrorKevin Van Brunt2019-09-231-3/+10
|
* Added CompletionError exception classKevin Van Brunt2019-09-201-0/+11
|
* Changed arg_tokens to a dictionaryKevin Van Brunt2019-09-161-4/+4
| | | | Including tokens from parent parsers in arg_tokens when subcommands are used
* Updated documentationKevin Van Brunt2019-09-131-0/+14
|
* AutoCompleter only passes parsed_args to choices/completer functions that ↵Kevin Van Brunt2019-08-271-3/+3
| | | | have an argument called 'parsed_args'
* AutoCompleter now passes parsed_args to all choices and completer functionsKevin Van Brunt2019-08-221-28/+16
|
* Fixed commentKevin Van Brunt2019-08-191-1/+1
|
* Added capability for an argparse-based command's completer/choice functions ↵Kevin Van Brunt2019-08-131-21/+30
| | | | | | | to receive a namespace of all arguments parsed up to token being completed. This will make it easier to have a previous argument's value affect what data is tab-completed.
* Added functions to manually add choice providing functions to an argparse ↵Kevin Van Brunt2019-08-051-21/+67
| | | | action.
* Raising exception when a choices or completer function is used for an ↵Kevin Van Brunt2019-07-291-4/+8
| | | | argument that takes no values
* Fixed commentKevin Van Brunt2019-07-221-1/+1
|
* Added commentKevin Van Brunt2019-07-211-2/+6
|
* Added constants for some hardcoded stringsKevin Van Brunt2019-07-201-3/+3
|
* Changed all uses of sub-command to subcommandKevin Van Brunt2019-07-191-2/+2
|
* Renamed ArgParser to Cmd2ArgumentParser to make it clear it's a derived ↵Kevin Van Brunt2019-07-181-5/+5
| | | | | | class of argparse.ArgumentParser when developers read the code in cmd2.py.
* Moved the sorting of shortcuts into StatementParser which allows users to ↵Kevin Van Brunt2019-07-161-1/+1
| | | | pass in a dictionary instead of a tuple for shortcuts.
* Changed format of help where nargs is a number greater than 1Kevin Van Brunt2019-07-151-0/+2
|
* Added ability to specify nargs ranges with no upper boundKevin Van Brunt2019-07-151-13/+70
|
* Updated documentationKevin Van Brunt2019-07-151-2/+2
|
* Renamed Cmd2ArgParser to ArgParserKevin Van Brunt2019-07-121-3/+3
|
* Changed how re is being importedKevin Van Brunt2019-07-111-5/+5
|
* Updated documentationKevin Van Brunt2019-07-111-28/+43
|
* Added documentationKevin Van Brunt2019-07-111-0/+99
|
* Moved all custom argparse classes intended for normal development to ↵Kevin Van Brunt2019-07-071-2/+54
| | | | | | | argparse_custom.py. Lazy loading AutoCompleter in cmd2 instance methods to allow argparse_completer.py to import cmd2.Cmd class. This Architecture makes more sense because AutoCompleter depends on cmd2.Cmd.
* Hiding flags that have help value of SUPRESSED in tab completion resultsKevin Van Brunt2019-07-071-4/+4
| | | | Added more unit tests for argparse completer
* Using argparse constants instead of hardcoded stringsKevin Van Brunt2019-07-041-3/+3
|
* Patched 2 more argparse functions to make nargs ranges work with all parsersKevin Van Brunt2019-07-041-43/+73
|
* Refactoring and updating documentationKevin Van Brunt2019-07-041-27/+31
|
* No longer restricting nargs range support to Cmd2ArgParserKevin Van Brunt2019-07-041-108/+165
|
* Removed unused custom_error_message codeKevin Van Brunt2019-07-031-15/+0
|
* Renamed ACHelpFormatter to Cmd2HelpFormatterKevin Van Brunt2019-07-031-2/+2
|
* Moved cmd2 custom argparse types to argparse_custom.pyKevin Van Brunt2019-07-031-0/+424
Rename ACArgumentParser to Cmd2ArgParser