浏览代码

Merge pull request #1835 from enkore/f/sch-master

debug, key: enable --help
enkore 8 年之前
父节点
当前提交
01e56a8650
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/borg/archiver.py

+ 2 - 2
src/borg/archiver.py

@@ -1721,7 +1721,7 @@ class Archiver:
         subparser.add_argument('location', metavar='REPOSITORY', nargs='?', default='',
         subparser.add_argument('location', metavar='REPOSITORY', nargs='?', default='',
                                type=location_validator(archive=False))
                                type=location_validator(archive=False))
 
 
-        subparser = subparsers.add_parser('key', add_help=False,
+        subparser = subparsers.add_parser('key', add_help=True,
                                           description="Manage a keyfile or repokey of a repository",
                                           description="Manage a keyfile or repokey of a repository",
                                           epilog="",
                                           epilog="",
                                           formatter_class=argparse.RawDescriptionHelpFormatter,
                                           formatter_class=argparse.RawDescriptionHelpFormatter,
@@ -2491,7 +2491,7 @@ class Archiver:
         in case you ever run into some severe malfunction. Use them only if you know
         in case you ever run into some severe malfunction. Use them only if you know
         what you are doing or if a trusted developer tells you what to do.""")
         what you are doing or if a trusted developer tells you what to do.""")
 
 
-        subparser = subparsers.add_parser('debug', add_help=False,
+        subparser = subparsers.add_parser('debug', add_help=True,
                                           description='debugging command (not intended for normal use)',
                                           description='debugging command (not intended for normal use)',
                                           epilog=debug_epilog,
                                           epilog=debug_epilog,
                                           formatter_class=argparse.RawDescriptionHelpFormatter,
                                           formatter_class=argparse.RawDescriptionHelpFormatter,