mirror of
https://github.com/borgbackup/borg.git
synced 2026-03-31 14:48:20 -04: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 @@ class Archiver:
|
|||
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 @@ class Archiver:
|
|||
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