diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-05-03 10:20:37 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-05-03 11:18:47 +0200 |
commit | 2d7be9a9bce5f3aef66d474149684e191156c97c (patch) | |
tree | 5a1edfc670d2bcea7f52c347d4b4c412840622c2 | |
parent | 8245285ade7be82602ff671bd42b9ea0f43380e8 (diff) | |
download | jenkins.debian.net-2d7be9a9bce5f3aef66d474149684e191156c97c.tar.xz |
reproducible: common.py: do not fail when non-recognized option are passed
-rwxr-xr-x | bin/reproducible_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |