diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-17 13:48:13 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-17 13:48:13 -0500 |
commit | b034f6d2de92a784853ddeef4e51b26148056691 (patch) | |
tree | 2d692d7e37265164410eaebad44759ab50928192 /tests/conftest.py | |
parent | 91bc999d022a486334b9054859e2ef6f03ca9666 (diff) | |
download | cmd2-git-b034f6d2de92a784853ddeef4e51b26148056691.tar.gz |
Improved how new argparse-based decorators provide help
Now "help command_name" and "command_name -h" provide exactly the same text.
The function docstring for the "do_*" command sets and overrides the ArgumentParser "description" if the docstring is not empty.
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 387322b1..021af193 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -21,7 +21,7 @@ edit help history load py pyscript quit set shell shortcuts # Help text for the history command HELP_HISTORY = """usage: history [-h] [-r | -e | -o FILE] [-s] [arg] -run, edit, and save previously entered commands +View, run, edit, and save previously entered commands. positional arguments: arg empty all history items |