mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-24 07:01:59 +00:00
[TASK] #4471 – borg help should print <command> list in sorted order: Step 2
Move subparsers definition out of "# borg mount" to the top so the mount section can be moved downwards.
This commit is contained in:
parent
018176771e
commit
2e42543d3d
1 changed files with 2 additions and 1 deletions
|
@ -2602,6 +2602,8 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
|
|||
mid_common_parser.set_defaults(paths=[], patterns=[])
|
||||
parser.common_options.add_common_group(mid_common_parser, '_midcommand')
|
||||
|
||||
subparsers = parser.add_subparsers(title='required arguments', metavar='<command>')
|
||||
|
||||
# borg mount
|
||||
mount_epilog = process_epilog("""
|
||||
This command mounts an archive as a FUSE filesystem. This can be useful for
|
||||
|
@ -2649,7 +2651,6 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
|
|||
parser.help = 'mount repository'
|
||||
subparser = parser
|
||||
else:
|
||||
subparsers = parser.add_subparsers(title='required arguments', metavar='<command>')
|
||||
subparser = subparsers.add_parser('mount', parents=[common_parser], add_help=False,
|
||||
description=self.do_mount.__doc__,
|
||||
epilog=mount_epilog,
|
||||
|
|
Loading…
Reference in a new issue