summaryrefslogtreecommitdiff
path: root/examples/override_parser.py
Commit message (Collapse)AuthorAgeFilesLines
* Refactored custom ArgparseCompleter functionality so they will now be set ↵Kevin Van Brunt2021-09-011-1/+1
| | | | | | using methods on ArgumentParser objects. This fixes issue where subcommands did not use the correct custom ArgparseCompleter type.
* Updated documentation for setting custom parsersKevin Van Brunt2021-08-231-2/+2
|
* * New function `set_default_command_completer_type()` allows developer to ↵Eric Lin2021-08-231-3/+2
| | | | | | | | | extend and modify the behavior of `ArgparseCompleter`. * New function `register_argparse_argument_parameter()` allows developers to specify custom parameters to be passed to the argparse parser's `add_argument()` method. These parameters will become accessible in the resulting argparse Action object when modifying `ArgparseCompleter` behavior.
* Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy.Kevin Van Brunt2021-03-301-1/+1
| | | | | | | | | | Added include_py keyword parameter to cmd2.Cmd.__init__(). If False, then the py command will not be available. Removed ability to run Python commands from the command line with py. Made banners and exit messages of Python and IPython consistent. Changed utils.is_text_file() to raise OSError if file cannot be read.
* Add in isort changesTodd Leonhardt2021-01-311-1/+3
|
* Add black for automatic code formatTodd Leonhardt2021-01-311-5/+4
|
* Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-1/+3
| | | | minor import changes.
* Added info on semantic versioning and branching strategy to CONTRIBUTING.mdTodd Leonhardt2020-04-241-1/+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
* Renamed locals_in_py to self_in_pyTodd Leonhardt2020-01-271-1/+1
| | | | This more accurately reflects what it controls
* Added capability to override the argument parser class used by cmd2 built-in ↵Kevin Van Brunt2019-11-191-0/+24
commands