Browse Source

serve: more Highlander options, fixes #6269

Thomas Waldmann 2 years ago
parent
commit
d0d8cd1edf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/borg/archiver/serve_cmd.py

+ 2 - 0
src/borg/archiver/serve_cmd.py

@@ -1,5 +1,6 @@
 import argparse
 import argparse
 
 
+from ._common import Highlander
 from ..constants import *  # NOQA
 from ..constants import *  # NOQA
 from ..helpers import EXIT_SUCCESS
 from ..helpers import EXIT_SUCCESS
 from ..helpers import parse_storage_quota
 from ..helpers import parse_storage_quota
@@ -76,6 +77,7 @@ class ServeMixIn:
             dest="storage_quota",
             dest="storage_quota",
             type=parse_storage_quota,
             type=parse_storage_quota,
             default=None,
             default=None,
+            action=Highlander,
             help="Override storage quota of the repository (e.g. 5G, 1.5T). "
             help="Override storage quota of the repository (e.g. 5G, 1.5T). "
             "When a new repository is initialized, sets the storage quota on the new "
             "When a new repository is initialized, sets the storage quota on the new "
             "repository as well. Default: no quota.",
             "repository as well. Default: no quota.",