From 2af7916d00281ae521cad1ee2881dbbe0e0c3dfa Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 1 Nov 2022 22:49:20 +0100 Subject: ... --- modules/borgsnap/borgsnap/borgsnap/__main__.py | 2 +- modules/zfssnap/zfssnap/zfssnap/__main__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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(): sys.excepthook = log_exceptions parser = argparse.ArgumentParser(prog='borgsnap') - parser.add_argument('--verbosity', dest='log_level', action='append') + parser.add_argument('--verbosity', dest='log_level', action='append', type=int) parser.add_argument('--verbose', '-v', dest='log_level', action='append_const', const=-1) parser.add_argument('--quiet', '-q', dest='log_level', action='append_const', const=1) 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(): sys.excepthook = log_exceptions parser = argparse.ArgumentParser(prog='zfssnap') - parser.add_argument('--verbosity', dest='log_level', action='append') + parser.add_argument('--verbosity', dest='log_level', action='append', type=int) parser.add_argument('--verbose', '-v', dest='log_level', action='append_const', const=-1) parser.add_argument('--quiet', '-q', dest='log_level', action='append_const', const=1) subparsers = parser.add_subparsers() -- cgit v1.2.3