summaryrefslogtreecommitdiff
path: root/docs/features/argument_processing.rst
Commit message (Collapse)AuthorAgeFilesLines
* Updated documentationKevin Van Brunt2021-08-231-1/+1
|
* Updated all examples to use Cmd2ArgumentParser instead of ↵Kevin Van Brunt2021-06-171-16/+11
| | | | | | argparse.ArgumentParser. This is best practice for consistency of appearance between built-in and custom commands.
* Replaced some pexcept() calls with perror().Kevin Van Brunt2021-04-021-2/+2
| | | | | | Converted some strings to f-strings. Fixed some grammar in error messages and docs. Increased code coverage.
* Merge branch 'master' into 2.0Todd Leonhardt2020-11-111-11/+8
|\ | | | | | | | | # Conflicts: # CHANGELOG.md
| * Replace with_argparser_and_unknown_args in docsKyle King2020-11-081-11/+8
| |
* | Removed Namespace.__statement__Kevin Van Brunt2020-08-271-6/+2
|/
* The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵Kevin Van Brunt2020-08-261-9/+11
| | | | | | | 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.
* Updated change log and docs for release1.3.5Kevin Van Brunt2020-08-251-0/+15
|
* Fixed RecursionError when printing an argparse.Namespace caused by custom ↵Kevin Van Brunt2020-08-251-1/+2
| | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute
* Marked with_arparser_and_unknown_args deprecated and consolidatedEric Lin2020-08-041-1/+1
| | | | implementation as an option to with_argparser instead.
* Fix documentation typo found in PR #915Todd Leonhardt2020-04-091-1/+1
|
* Fix extra space typoTodd Leonhardt2020-04-091-1/+1
|
* Added documentation about decorator order and updated an exampleTodd Leonhardt2020-04-091-0/+35
| | | | | Also: - Deal with warnings when building docs with Sphinx 3.0.0
* Add argparse stuff to apikotfu2020-02-221-5/+3
|
* Removed dash from 'tab complete' stringKevin Van Brunt2020-02-131-1/+1
|
* Overhauling tab completion examplesKevin Van Brunt2020-02-121-2/+1
|
* Clean up class and method referenceskotfu2020-02-051-21/+13
| | | | | - In docs/api/cmd.rst, the `cmd2.Cmd` class was defined as `cmd2.cmd2.Cmd`, which required the extraneous `cmd2` every time we referenced it. This extra `cmd2` is no longer required. - always refer to a bare cmd2 using ``cmd2`` per our documentation conventions
* Fixed typosKevin Van Brunt2019-11-061-1/+1
|
* Improved documentation for Argument Parsing and Tab-CompletionTodd Leonhardt2019-11-031-4/+20
| | | | | Also: - Added a couple examples
* Fixed building of docsKevin Van Brunt2019-10-311-3/+3
|
* Changed all uses of sub-command to subcommandKevin Van Brunt2019-07-191-5/+5
|
* Finish migration documentation for #719kotfu2019-07-141-2/+5
|
* Add doc8 documentation style checkingkotfu2019-07-061-54/+75
| | | | | | - add dev dependency - add doc8 to tasks.py - fix all doc8 errors
* Major overhaul of documentation structure for #709kotfu2019-07-021-0/+320