Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | argparse tab completion now groups flag names which run the same action. ↵ | Kevin Van Brunt | 2020-09-09 | 1 | -26/+44 |
| | | | | | | Optional flags are wrapped in brackets like it is done in argparse usage text. | ||||
* | Added always_show_hint setting | Kevin Van Brunt | 2020-09-05 | 1 | -11/+45 |
| | | | | Fixed issue where flag names weren't always sorted correctly in argparse tab completion | ||||
* | Fixed tab completion bug when using CompletionItem on an argument whose ↵ | Kevin Van Brunt | 2020-08-13 | 1 | -5/+73 |
| | | | | metavar is a tuple | ||||
* | Added info on semantic versioning and branching strategy to CONTRIBUTING.md | Todd Leonhardt | 2020-04-24 | 1 | -2/+3 |
| | | | | | | | Also: - Added isort to Pipenv dev - Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke - Ran isort to sort includes | ||||
* | Added apply_style to CompletionError | Kevin Van Brunt | 2020-02-18 | 1 | -39/+0 |
| | | | | Simplified error class structure in argparse_completer.py | ||||
* | Fixed issue where argparse completion errors were being rewrapped as ↵ | Kevin Van Brunt | 2020-02-18 | 1 | -1/+41 |
| | | | | _ActionCompletionError in some cases | ||||
* | Updated unit test | Kevin Van Brunt | 2020-02-17 | 1 | -2/+5 |
| | |||||
* | Made CompletionError exception available to non-argparse tab completion | Kevin Van Brunt | 2020-02-17 | 1 | -2/+2 |
| | |||||
* | Renamed AutoCompleter to ArgparseCompleter for clarity | Kevin Van Brunt | 2020-02-17 | 1 | -12/+12 |
| | |||||
* | Increased code coverage in argparse_completer.py back to 100% | Kevin Van Brunt | 2019-12-10 | 1 | -2/+2 |
| | |||||
* | Removed all instances where a parser's prog attribute was being set since ↵ | Kevin Van Brunt | 2019-10-30 | 1 | -1/+1 |
| | | | | this is no longer needed | ||||
* | Added comment | Kevin Van Brunt | 2019-09-30 | 1 | -1/+1 |
| | |||||
* | Wrote unit tests | Kevin Van Brunt | 2019-09-30 | 1 | -9/+72 |
| | |||||
* | Simplifying tab completion message printing | Kevin Van Brunt | 2019-09-30 | 1 | -19/+1 |
| | |||||
* | Added unit tests for CompletionError | Kevin Van Brunt | 2019-09-23 | 1 | -1/+41 |
| | |||||
* | Fixed unit tests on Python versions older than 3.7 | Kevin Van Brunt | 2019-09-16 | 1 | -3/+3 |
| | |||||
* | Added unit test to override a parameter in a parent parser | Kevin Van Brunt | 2019-09-16 | 1 | -0/+6 |
| | |||||
* | Updated arg_tokens unit tests | Kevin Van Brunt | 2019-09-16 | 1 | -50/+15 |
| | |||||
* | Changed arg_tokens to a dictionary | Kevin Van Brunt | 2019-09-16 | 1 | -9/+9 |
| | | | | Including tokens from parent parsers in arg_tokens when subcommands are used | ||||
* | Fixed issue where invalid subcommand token was ignored when tab completing help | Kevin Van Brunt | 2019-09-13 | 1 | -0/+1 |
| | |||||
* | Increased code coverage | Kevin Van Brunt | 2019-09-13 | 1 | -1/+2 |
| | |||||
* | Added unit tests for arg_tokens | Kevin Van Brunt | 2019-09-13 | 1 | -0/+57 |
| | |||||
* | AutoCompleter only passes parsed_args to choices/completer functions that ↵ | Kevin Van Brunt | 2019-08-27 | 1 | -5/+5 |
| | | | | have an argument called 'parsed_args' | ||||
* | AutoCompleter now passes parsed_args to all choices and completer functions | Kevin Van Brunt | 2019-08-22 | 1 | -5/+5 |
| | |||||
* | Replaced AutoCompleter._positional_completers since an ArgumentParser can ↵ | Kevin Van Brunt | 2019-08-12 | 1 | -1/+1 |
| | | | | | | only have one level of subcommands No longer creating AutoCompleters for all subcommands each time tab is pressed | ||||
* | Fixed unit tests | Kevin Van Brunt | 2019-07-20 | 1 | -6/+15 |
| | |||||
* | Changed all uses of sub-command to subcommand | Kevin Van Brunt | 2019-07-19 | 1 | -4/+4 |
| | |||||
* | Renamed ArgParser to Cmd2ArgumentParser to make it clear it's a derived ↵ | Kevin Van Brunt | 2019-07-18 | 1 | -12/+12 |
| | | | | | | class of argparse.ArgumentParser when developers read the code in cmd2.py. | ||||
* | Added unit tests to cover invalid subcommand names in completions | Kevin Van Brunt | 2019-07-16 | 1 | -1/+24 |
| | |||||
* | Renamed matches_sort_key to default_sort_key and using it to sort additional d | Kevin Van Brunt | 2019-07-15 | 1 | -7/+7 |
| | |||||
* | Added ability to specify nargs ranges with no upper bound | Kevin Van Brunt | 2019-07-15 | 1 | -9/+2 |
| | |||||
* | Made a few module functions protected | Kevin Van Brunt | 2019-07-15 | 1 | -18/+18 |
| | |||||
* | Added more hint unit tests | Kevin Van Brunt | 2019-07-12 | 1 | -29/+46 |
| | |||||
* | Simplified unit tests | Kevin Van Brunt | 2019-07-12 | 1 | -19/+3 |
| | |||||
* | More unit tests | Kevin Van Brunt | 2019-07-12 | 1 | -0/+3 |
| | |||||
* | More unit tests | Kevin Van Brunt | 2019-07-12 | 1 | -1/+17 |
| | |||||
* | Added unit tests for unfinished flag errors | Kevin Van Brunt | 2019-07-12 | 1 | -7/+46 |
| | |||||
* | Renamed Cmd2ArgParser to ArgParser | Kevin Van Brunt | 2019-07-12 | 1 | -11/+11 |
| | |||||
* | Refactored much of AutoCompleter.complete_command. | Kevin Van Brunt | 2019-07-11 | 1 | -22/+31 |
| | | | | | Fixed issue where negative numbers did not tab complete. AutoCompleter now prints an error if flags are left unfinished before moving to next argument. | ||||
* | Removed unused code and add unit test | Kevin Van Brunt | 2019-07-11 | 1 | -0/+30 |
| | |||||
* | More unit tests | Kevin Van Brunt | 2019-07-10 | 1 | -123/+36 |
| | |||||
* | Small refactoring | Kevin Van Brunt | 2019-07-10 | 1 | -2/+2 |
| | |||||
* | Added unit tests | Kevin Van Brunt | 2019-07-10 | 1 | -1/+17 |
| | |||||
* | Fixed some double-dash handling logic added unit tests | Kevin Van Brunt | 2019-07-10 | 1 | -45/+57 |
| | |||||
* | Fixed bug where -- wasn't stopping a REMAINDER flag and did a lot of refactoring | Kevin Van Brunt | 2019-07-10 | 1 | -4/+8 |
| | |||||
* | Added some tests for REMAINDER flags | Kevin Van Brunt | 2019-07-10 | 1 | -8/+29 |
| | |||||
* | Resetting consumed arguments list each time a flag is used | Kevin Van Brunt | 2019-07-08 | 1 | -16/+79 |
| | | | | Started adding AutoCompleter unit tests for nargs. | ||||
* | Added code to handle flags with action set to append, append_const, and ↵ | Kevin Van Brunt | 2019-07-08 | 1 | -22/+22 |
| | | | | count in AutoCompleter | ||||
* | Fixed issue where -- was not handled properly in AutoCompleter when the ↵ | Kevin Van Brunt | 2019-07-08 | 1 | -38/+44 |
| | | | | parser's prefix characters did not include - | ||||
* | More unit tests | Kevin Van Brunt | 2019-07-08 | 1 | -1/+24 |
| |