File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments