diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-01 22:49:20 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-01 22:49:20 +0100 |
commit | 2af7916d00281ae521cad1ee2881dbbe0e0c3dfa (patch) | |
tree | ccdcdfcf2c1675e520dd94423a7bdde0fc901727 | |
parent | 7448d3431fcfc05f9b7991e337b02083300a99db (diff) | |
download | nixos-2af7916d00281ae521cad1ee2881dbbe0e0c3dfa.tar nixos-2af7916d00281ae521cad1ee2881dbbe0e0c3dfa.tar.gz nixos-2af7916d00281ae521cad1ee2881dbbe0e0c3dfa.tar.bz2 nixos-2af7916d00281ae521cad1ee2881dbbe0e0c3dfa.tar.xz nixos-2af7916d00281ae521cad1ee2881dbbe0e0c3dfa.zip |
...
-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() |