mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
docs: html: include group description in output
This commit is contained in:
parent
0a496c1064
commit
12bcccc0d6
1 changed files with 4 additions and 1 deletions
5
setup.py
5
setup.py
|
|
@ -317,7 +317,10 @@ class build_usage(Command):
|
|||
else:
|
||||
if not group._group_actions:
|
||||
continue
|
||||
rows.append((1, '**%s**' % group.title))
|
||||
group_header = '**%s**' % group.title
|
||||
if group.description:
|
||||
group_header += ' — ' + group.description
|
||||
rows.append((1, group_header))
|
||||
if is_positional_group(group):
|
||||
for option in group._group_actions:
|
||||
rows.append((3, '', '``%s``' % option.metavar, option.help or ''))
|
||||
|
|
|
|||
Loading…
Reference in a new issue