diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/borgsnap/borgsnap/borgsnap/__main__.py | 2 | ||||
-rw-r--r-- | modules/zfssnap/zfssnap/zfssnap/__main__.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/borgsnap/borgsnap/borgsnap/__main__.py b/modules/borgsnap/borgsnap/borgsnap/__main__.py index 4b50cf80..1a4cc41f 100644 --- a/modules/borgsnap/borgsnap/borgsnap/__main__.py +++ b/modules/borgsnap/borgsnap/borgsnap/__main__.py | |||
@@ -357,7 +357,7 @@ def main(): | |||
357 | sys.excepthook = log_exceptions | 357 | sys.excepthook = log_exceptions |
358 | 358 | ||
359 | parser = argparse.ArgumentParser(prog='borgsnap') | 359 | parser = argparse.ArgumentParser(prog='borgsnap') |
360 | parser.add_argument('--verbosity', dest='log_level', action='append') | 360 | parser.add_argument('--verbosity', dest='log_level', action='append', type=int) |
361 | parser.add_argument('--verbose', '-v', dest='log_level', action='append_const', const=-1) | 361 | parser.add_argument('--verbose', '-v', dest='log_level', action='append_const', const=-1) |
362 | parser.add_argument('--quiet', '-q', dest='log_level', action='append_const', const=1) | 362 | parser.add_argument('--quiet', '-q', dest='log_level', action='append_const', const=1) |
363 | parser.add_argument('--target', metavar='REPO', default='yggdrasil.borgbase:repo') | 363 | parser.add_argument('--target', metavar='REPO', default='yggdrasil.borgbase:repo') |
diff --git a/modules/zfssnap/zfssnap/zfssnap/__main__.py b/modules/zfssnap/zfssnap/zfssnap/__main__.py index 59478c71..ab3a2f66 100644 --- a/modules/zfssnap/zfssnap/zfssnap/__main__.py +++ b/modules/zfssnap/zfssnap/zfssnap/__main__.py | |||
@@ -375,7 +375,7 @@ def main(): | |||
375 | sys.excepthook = log_exceptions | 375 | sys.excepthook = log_exceptions |
376 | 376 | ||
377 | parser = argparse.ArgumentParser(prog='zfssnap') | 377 | parser = argparse.ArgumentParser(prog='zfssnap') |
378 | parser.add_argument('--verbosity', dest='log_level', action='append') | 378 | parser.add_argument('--verbosity', dest='log_level', action='append', type=int) |
379 | parser.add_argument('--verbose', '-v', dest='log_level', action='append_const', const=-1) | 379 | parser.add_argument('--verbose', '-v', dest='log_level', action='append_const', const=-1) |
380 | parser.add_argument('--quiet', '-q', dest='log_level', action='append_const', const=1) | 380 | parser.add_argument('--quiet', '-q', dest='log_level', action='append_const', const=1) |
381 | subparsers = parser.add_subparsers() | 381 | subparsers = parser.add_subparsers() |