Skip to content

Commit 895b2da

Browse files
committed
Updated comment
1 parent 55b4e8e commit 895b2da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2/cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def cmd_wrapper(instance, cmdline):
219219
if argparser.description is None and func.__doc__:
220220
argparser.description = func.__doc__
221221

222-
# If argparser.description is None, this will show under 'Undocumented commands'
222+
# Set the command's help text as argparser.description (which can be None)
223223
cmd_wrapper.__doc__ = argparser.description
224224

225225
# Mark this function as having an argparse ArgumentParser
@@ -260,7 +260,7 @@ def cmd_wrapper(instance, cmdline):
260260
if argparser.description is None and func.__doc__:
261261
argparser.description = func.__doc__
262262

263-
# If argparser.description is None, this will show under 'Undocumented commands'
263+
# Set the command's help text as argparser.description (which can be None)
264264
cmd_wrapper.__doc__ = argparser.description
265265

266266
# Mark this function as having an argparse ArgumentParser

0 commit comments

Comments
 (0)