From 285db344b34368a45380e6f00d87f7764bb008a4 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 3 Dec 2018 08:44:51 +0100 Subject: [PATCH] Allow to document count_tab as "count:" argument --- scripts/dev/src2asciidoc.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/dev/src2asciidoc.py b/scripts/dev/src2asciidoc.py index f7b1d46cd..ba4e9b69c 100755 --- a/scripts/dev/src2asciidoc.py +++ b/scripts/dev/src2asciidoc.py @@ -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):