summaryrefslogtreecommitdiff
path: root/examples/argparse_example.py
Commit message (Collapse)AuthorAgeFilesLines
* Properly set docstring so it contains help messagekotfu2018-01-071-36/+36
|
* Add tests for POSIX=true and arguments containing spaceskotfu2018-01-071-2/+18
|
* Default posix and quote removal working.kotfu2018-01-071-15/+17
|
* Merge branch 'master' of https://github.com/python-cmd2/cmd2 into argparseJared Crapo2017-12-111-8/+8
|\
| * Made a couple fixes to existing examplesTodd Leonhardt2017-11-111-8/+8
| | | | | | | | | | | | | | Changes include: - argparse_example.py modified to do pass all unknown args onto cmd2 and allow arguments at invocation - example.py comments modified to indicate it is intended to be used with transcript_regext.txt - exampleSession.txt fixed so it works properly with argparse_example.py
* | Plan and first working code for argparse decoratorJared Crapo2017-12-111-1/+25
|/
* Fixed a few bugs and examplesTodd Leonhardt2017-07-031-9/+11
| | | | | | | | | | | | | | Bug fixes: - case_insensitive is no longer a runtime-settable parameter, but it was still listed as such - Fixed a recursive loop bug when abbreviated commands are enabled and it could get stuck in the editor forever - Added additional command abbreviations to the "exclude from history" list - Fixed argparse_example.py and pirate.py examples Other changes: - Organized all attributes used to configure the ParserManager into a single location - Set the default value of "abbrev" to False (which controls whether or not abbreviated commands are allowed) - With good tab-completion of command names, using abbreviated commands isn't a particularly useful feature - And it can create problems
* Mostly fix a bunch of spelling mistakes.Todd Leonhardt2017-03-131-3/+3
| | | | A few other miscellaneous minor tweaks for whitespace and such.
* Added info to CHANGES.rst on what bugs have been fixed so far this release.Todd Leonhardt2017-03-041-0/+88
Fixed a bug where the allow_cli_args attribute wasn't properly preventing OptParse from prasing the args looking for "-t" or "--test" for transcript testing. Added an example of using Argparse with cmd2.