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 15
Finally moved borg help and added a section comment.
This commit is contained in:
parent
1e2fee8c1a
commit
1d74783a02
1 changed files with 9 additions and 8 deletions
|
@ -2822,14 +2822,6 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
|
|||
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 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
|
|||
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.
|
||||
|
|
Loading…
Reference in a new issue