diff options
author | Kali Kaneko <kali@leap.se> | 2014-07-01 01:48:50 -0500 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-07-01 01:48:50 -0500 |
commit | 44a3896a86c33cbca4d239c8bd0fe65c0e83b9d0 (patch) | |
tree | a2e0c6b0163c6c54e518c8e620e431d3784d8b6c /src/leap/bitmask/util/leap_argparse.py | |
parent | b2a00d0ce2db905fe79cf9e7c33411f4f37bb943 (diff) | |
parent | 1e456b0fff46001641a736bc5932314e9d00b1bc (diff) |
Merge branch 'develop' into deb-0.5.3
Diffstat (limited to 'src/leap/bitmask/util/leap_argparse.py')
-rw-r--r-- | src/leap/bitmask/util/leap_argparse.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/leap/bitmask/util/leap_argparse.py b/src/leap/bitmask/util/leap_argparse.py index 84af4e8d..c7fed0a3 100644 --- a/src/leap/bitmask/util/leap_argparse.py +++ b/src/leap/bitmask/util/leap_argparse.py @@ -123,7 +123,18 @@ def build_parser(): return parser -def init_leapc_args(): +def get_options(): + """ + Get the command line options used when the app was started. + + :return: the command options + :rtype: argparse.Namespace + """ parser = build_parser() opts, unknown = parser.parse_known_args() - return parser, opts + + # we add this option manually since it's not defined for 'release version' + if IS_RELEASE_VERSION: + opts.danger = False + + return opts |