summaryrefslogtreecommitdiff
path: root/cmd2/argparse_completer.py
Commit message (Collapse)AuthorAgeFilesLines
* Improved displaying multiline CompletionErrorsKevin Van Brunt2019-10-091-1/+5
|
* Respecting user's allow_ansi value when printing hints and errors in ↵Kevin Van Brunt2019-09-301-8/+6
| | | | | | AutoCompleter Simplified printing of CompletionErrors
* Simplifying tab completion message printingKevin Van Brunt2019-09-301-42/+19
|
* Changed some logic and added comment whyKevin Van Brunt2019-09-271-2/+3
|
* Allowing flag in mutex group to appear more than onceKevin Van Brunt2019-09-271-1/+8
|
* Remove unneeded variableKevin Van Brunt2019-09-271-2/+1
|
* AutoCompleter now handles mutually exclusive groupsKevin Van Brunt2019-09-271-5/+46
|
* Initial steps to support mutually exclusive groups in AutoCompleterKevin Van Brunt2019-09-261-22/+22
|
* Finished implementation of CompletionErrorKevin Van Brunt2019-09-231-30/+62
|
* Changed arg_tokens to a dictionaryKevin Van Brunt2019-09-161-22/+35
| | | | Including tokens from parent parsers in arg_tokens when subcommands are used
* Fixed issue where invalid subcommand token was ignored when retrieving help textKevin Van Brunt2019-09-131-3/+4
|
* Fixed issue where invalid subcommand token was ignored when tab completing helpKevin Van Brunt2019-09-131-2/+3
|
* Change parsed_args to arg_tokensKevin Van Brunt2019-09-131-8/+14
| | | | Including the token being completed in arg_tokens
* Updated commentKevin Van Brunt2019-08-271-2/+3
|
* AutoCompleter only passes parsed_args to choices/completer functions that ↵Kevin Van Brunt2019-08-271-13/+19
| | | | have an argument called 'parsed_args'
* AutoCompleter now passes parsed_args to all choices and completer functionsKevin Van Brunt2019-08-221-10/+6
|
* Added parser to parsed_args namespaceKevin Van Brunt2019-08-211-0/+1
|
* Renamed some variablesKevin Van Brunt2019-08-131-3/+3
|
* Now adding flags with no arguments to consumed_arg_values. This way ↵Kevin Van Brunt2019-08-131-10/+16
| | | | | | completer/choice functions that receive parsed_args will still know a flag was used.
* Combined 2 functionsKevin Van Brunt2019-08-131-57/+43
|
* Added capability for an argparse-based command's completer/choice functions ↵Kevin Van Brunt2019-08-131-20/+23
| | | | | | | 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.
* Replaced AutoCompleter._positional_completers since an ArgumentParser can ↵Kevin Van Brunt2019-08-121-37/+29
| | | | | | only have one level of subcommands No longer creating AutoCompleters for all subcommands each time tab is pressed
* Removed token_start_index from AutoCompleter's __init__ methodKevin Van Brunt2019-08-121-3/+1
|
* Removed need for AutoCompleter's token_start_index memberKevin Van Brunt2019-08-121-13/+9
|
* Sorting unsorted numbers list in ascending order in AutoCompleterKevin Van Brunt2019-07-201-0/+6
|
* Changed all uses of sub-command to subcommandKevin Van Brunt2019-07-191-5/+5
|
* Reduced complexity of complete()Kevin Van Brunt2019-07-171-1/+1
|
* Using action instead of action.dest as dictionary keyKevin Van Brunt2019-07-161-12/+11
|
* Removed unnecessary dictionaryKevin Van Brunt2019-07-161-52/+51
|
* Renamed matches_sort_key to default_sort_key and using it to sort additional dKevin Van Brunt2019-07-151-1/+1
|
* Added ability to specify nargs ranges with no upper boundKevin Van Brunt2019-07-151-18/+4
|
* Made a few module functions protectedKevin Van Brunt2019-07-151-9/+9
|
* Added more hint unit testsKevin Van Brunt2019-07-121-2/+7
|
* More unit testsKevin Van Brunt2019-07-121-1/+1
|
* Added unit tests for unfinished flag errorsKevin Van Brunt2019-07-121-6/+2
|
* Fixed issue where flag arg hints weren't always printingKevin Van Brunt2019-07-121-6/+13
|
* Changed unfinished flag error formatKevin Van Brunt2019-07-121-4/+6
|
* Updated docsKevin Van Brunt2019-07-121-1/+1
|
* Removed unused codeKevin Van Brunt2019-07-121-32/+18
|
* Fixed issue where flags did not always complete while in a positionalKevin Van Brunt2019-07-121-9/+6
|
* Added commentsKevin Van Brunt2019-07-121-3/+7
|
* More refactoringKevin Van Brunt2019-07-121-3/+25
|
* Refactored much of AutoCompleter.complete_command.Kevin Van Brunt2019-07-111-188/+203
| | | | | Fixed issue where negative numbers did not tab complete. AutoCompleter now prints an error if flags are left unfinished before moving to next argument.
* Changes suggested in code reviewKevin Van Brunt2019-07-111-5/+4
|
* Removed unused code and add unit testKevin Van Brunt2019-07-111-17/+4
|
* Added documentationKevin Van Brunt2019-07-111-54/+2
|
* Small refactoringKevin Van Brunt2019-07-101-16/+11
|
* Small refactors and doc updatesKevin Van Brunt2019-07-101-10/+9
|
* Fixed some double-dash handling logic added unit testsKevin Van Brunt2019-07-101-11/+15
|
* Removed unused variableKevin Van Brunt2019-07-101-6/+1
|