summaryrefslogtreecommitdiff
path: root/tests/test_argparse_custom.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed black, isort, flake8, and doc8 issuesTodd Leonhardt2021-02-191-13/+10
|
* Merge branch 'master' into blackTodd Leonhardt2021-02-191-30/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # cmd2/__init__.py # cmd2/argparse_completer.py # cmd2/argparse_custom.py # cmd2/cmd2.py # cmd2/decorators.py # cmd2/exceptions.py # cmd2/utils.py # examples/arg_decorators.py # examples/argparse_completion.py # examples/modular_commands_main.py # tests/test_argparse_completer.py # tests/test_argparse_custom.py # tests/test_cmd2.py # tests/test_completion.py # tests/test_history.py
| * Merge branch 'master' into 2.0Kevin Van Brunt2021-01-221-4/+11
| |\
| * \ Merge branch 'master' into 2.0Kevin Van Brunt2020-08-271-0/+10
| |\ \
| * | | Replaced choices_function / choices_method with choices_provider.Kevin Van Brunt2020-08-131-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced completer_function / completer_method with completer. ArgparseCompleter now always passes cmd2.Cmd or CommandSet instance as the self argument to choices_provider and completer functions. Moved basic_complete from utils into cmd2.Cmd class. Moved CompletionError to exceptions.py
* | | | Add in isort changesTodd Leonhardt2021-01-311-5/+16
| | | |
* | | | Attempt to fix remaining black failuresTodd Leonhardt2021-01-311-1/+9
| | | |
* | | | Add black for automatic code formatTodd Leonhardt2021-01-311-33/+36
| |_|/ |/| |
* | | Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-4/+11
| |/ |/| | | | | minor import changes.
* | The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵Kevin Van Brunt2020-08-261-0/+10
|/ | | | | | | are now Cmd2AttributeWrapper objects named cmd2_statement and cmd2_handler. This makes it easy to filter out which attributes in an argparse.Namespace were added by cmd2.
* Add unit test and update CHANGELOGTodd Leonhardt2020-08-121-0/+7
|
* Added info on semantic versioning and branching strategy to CONTRIBUTING.mdTodd Leonhardt2020-04-241-0/+1
| | | | | | | 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
* Initial commit of table creation APIKevin Van Brunt2020-04-091-5/+5
|
* Added unit test for overriding default parserKevin Van Brunt2019-11-191-0/+17
|
* Removed all instances where a parser's prog attribute was being set since ↵Kevin Van Brunt2019-10-301-16/+16
| | | | this is no longer needed
* Added functions to manually add choice providing functions to an argparse ↵Kevin Van Brunt2019-08-051-7/+18
| | | | action.
* Raising exception when a choices or completer function is used for an ↵Kevin Van Brunt2019-07-291-4/+17
| | | | argument that takes no values
* Renamed ArgParser to Cmd2ArgumentParser to make it clear it's a derived ↵Kevin Van Brunt2019-07-181-16/+17
| | | | | | class of argparse.ArgumentParser when developers read the code in cmd2.py.
* Changed format of help where nargs is a number greater than 1Kevin Van Brunt2019-07-151-33/+28
|
* More unit testsKevin Van Brunt2019-07-151-9/+47
|
* Added unit testsKevin Van Brunt2019-07-151-10/+55
|
* Added ability to specify nargs ranges with no upper boundKevin Van Brunt2019-07-151-18/+15
|
* Renamed Cmd2ArgParser to ArgParserKevin Van Brunt2019-07-121-14/+13
|
* Added unit tests for argparse_custom.pyKevin Van Brunt2019-07-101-7/+101
|
* Reorganized argparse completion and custom unit testsKevin Van Brunt2019-07-051-0/+51