From 2d7be9a9bce5f3aef66d474149684e191156c97c Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sun, 3 May 2015 10:20:37 +0200 Subject: reproducible: common.py: do not fail when non-recognized option are passed --- bin/reproducible_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/reproducible_common.py') diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index aa968d9b..cea16cfa 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -60,7 +60,7 @@ parser = argparse.ArgumentParser() group = parser.add_mutually_exclusive_group() group.add_argument("-d", "--debug", action="store_true") group.add_argument("-q", "--quiet", action="store_true") -args = parser.parse_args() +args, unknown_args = parser.parse_known_args() log_level = logging.INFO if args.debug or DEBUG: log_level = logging.DEBUG -- cgit v1.2.3-70-g09d2