Allow to document count_tab as "count:" argument
This commit is contained in:
parent
ede13c76d9
commit
285db344b3
@ -257,9 +257,13 @@ def _get_command_doc_count(cmd, parser):
|
||||
yield "==== count"
|
||||
try:
|
||||
yield parser.arg_descs[param.name]
|
||||
except KeyError as e:
|
||||
raise KeyError("No description for count arg {!r} of command "
|
||||
"{!r}!".format(param.name, cmd.name)) from e
|
||||
except KeyError:
|
||||
try:
|
||||
yield parser.arg_descs['count']
|
||||
except KeyError as e:
|
||||
raise KeyError("No description for count arg {!r} of "
|
||||
"command {!r}!"
|
||||
.format(param.name, cmd.name)) from e
|
||||
|
||||
|
||||
def _get_command_doc_notes(cmd):
|
||||
|
Loading…
Reference in New Issue
Block a user