Skip to content

Commit 382e500

Browse files
authored
Merge pull request #56 from arewm/nosubcommands
add nosubcommands directive to general usage
2 parents 3889065 + 21b4071 commit 382e500

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinxarg/ext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,8 @@ def run(self):
477477
items.append(self._nested_parse_paragraph(result['description']))
478478
items.append(nodes.literal_block(text=result['usage']))
479479
items.extend(print_action_groups(result, nested_content, markDownHelp))
480-
items.extend(print_subcommands(result, nested_content, markDownHelp))
480+
if 'nosubcommands' not in self.options:
481+
items.extend(print_subcommands(result, nested_content, markDownHelp))
481482
if 'epilog' in result and 'noepilog' not in self.options:
482483
items.append(self._nested_parse_paragraph(result['epilog']))
483484

0 commit comments

Comments
 (0)