소스 검색

Merge pull request #2715 from enkore/f/rare-opts2

delete: remove short option for --cache-only
enkore 8 년 전
부모
커밋
710ca196d8
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      src/borg/archiver.py

+ 2 - 4
src/borg/archiver.py

@@ -3094,11 +3094,9 @@ class Archiver:
                                           formatter_class=argparse.RawDescriptionHelpFormatter,
                                           help='delete archive')
         subparser.set_defaults(func=self.do_delete)
-        subparser.add_argument('-s', '--stats', dest='stats',
-                               action='store_true', default=False,
+        subparser.add_argument('-s', '--stats', dest='stats', action='store_true',
                                help='print statistics for the deleted archive')
-        subparser.add_argument('-c', '--cache-only', dest='cache_only',
-                               action='store_true', default=False,
+        subparser.add_argument('--cache-only', dest='cache_only', action='store_true',
                                help='delete only the local cache for the given repository')
         subparser.add_argument('--force', dest='forced',
                                action='count', default=0,