summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-06-30 14:36:52 -0300
committerTomás Touceda <chiiph@leap.se>2014-07-21 12:02:53 -0300
commit1f1e9df6ca83ad6a135c5ff8c6bade81707fe008 (patch)
treed979dbbf6358b99d5d2a3947abde9ffe7bceaa11
parent7858d83af4a09ab00f6ba33dd8dbcf07ade101ce (diff)
Handle undefined danger flag.
-rw-r--r--src/leap/bitmask/util/leap_argparse.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/bitmask/util/leap_argparse.py b/src/leap/bitmask/util/leap_argparse.py
index 0717aea5..b7428488 100644
--- a/src/leap/bitmask/util/leap_argparse.py
+++ b/src/leap/bitmask/util/leap_argparse.py
@@ -132,4 +132,9 @@ def get_options():
"""
parser = build_parser()
opts, unknown = parser.parse_known_args()
+
+ # we add this option manually since it's not defined for 'release version'
+ if not IS_RELEASE_VERSION:
+ opts.danger = False
+
return opts