summaryrefslogtreecommitdiff
path: root/cmd2
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-10-03 02:42:50 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-10-03 02:42:50 -0400
commit895b2da82db64d2d01c65be6ebc2489fd4914bbf (patch)
treef5e010f42df3a35b1ea6b8c687e67bb35f0ad236 /cmd2
parent55b4e8e89a6658ff36e10173141057304b46e122 (diff)
downloadcmd2-git-895b2da82db64d2d01c65be6ebc2489fd4914bbf.tar.gz
Updated comment
Diffstat (limited to 'cmd2')
-rw-r--r--cmd2/cmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 0e263f4c..cc4c4bbc 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -219,7 +219,7 @@ def with_argparser_and_unknown_args(argparser: argparse.ArgumentParser, preserve
if argparser.description is None and func.__doc__:
argparser.description = func.__doc__
- # If argparser.description is None, this will show under 'Undocumented commands'
+ # Set the command's help text as argparser.description (which can be None)
cmd_wrapper.__doc__ = argparser.description
# Mark this function as having an argparse ArgumentParser
@@ -260,7 +260,7 @@ def with_argparser(argparser: argparse.ArgumentParser, preserve_quotes: bool=Fal
if argparser.description is None and func.__doc__:
argparser.description = func.__doc__
- # If argparser.description is None, this will show under 'Undocumented commands'
+ # Set the command's help text as argparser.description (which can be None)
cmd_wrapper.__doc__ = argparser.description
# Mark this function as having an argparse ArgumentParser