[TASK] #4471 – borg help should print <command> list in sorted order: Step 15

Finally moved borg help and added a section comment.
This commit is contained in:
Thalian 2019-03-29 19:31:07 +01:00
parent 1e2fee8c1a
commit 1d74783a02
1 changed files with 9 additions and 8 deletions

View File

@ -2822,14 +2822,6 @@ class Archiver:
subparser.add_argument('value', metavar='VALUE', nargs='?',
help='new value for key')
subparser = subparsers.add_parser('help', parents=[common_parser], add_help=False,
description='Extra help')
subparser.add_argument('--epilog-only', dest='epilog_only', action='store_true')
subparser.add_argument('--usage-only', dest='usage_only', action='store_true')
subparser.set_defaults(func=functools.partial(self.do_help, parser, subparsers.choices))
subparser.add_argument('topic', metavar='TOPIC', type=str, nargs='?',
help='additional help on TOPIC')
# borg create
create_epilog = process_epilog("""
This command creates a backup archive containing all files found while recursively
@ -3405,6 +3397,15 @@ class Archiver:
help='paths to extract; patterns are supported')
define_exclusion_group(subparser, strip_components=True)
# borg help
subparser = subparsers.add_parser('help', parents=[common_parser], add_help=False,
description='Extra help')
subparser.add_argument('--epilog-only', dest='epilog_only', action='store_true')
subparser.add_argument('--usage-only', dest='usage_only', action='store_true')
subparser.set_defaults(func=functools.partial(self.do_help, parser, subparsers.choices))
subparser.add_argument('topic', metavar='TOPIC', type=str, nargs='?',
help='additional help on TOPIC')
# borg info
info_epilog = process_epilog("""
This command displays detailed information about the specified archive or repository.