summaryrefslogtreecommitdiff
path: root/src/leap/util/leap_argparse.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-07-23 23:34:37 +0200
committerKali Kaneko <kali@leap.se>2013-07-23 23:34:37 +0200
commitcacb2d58c87e8ca6327f991a9ca62acfb095e6e2 (patch)
tree0ef1417430f26f7b249f09a4d4b42f534d15002e /src/leap/util/leap_argparse.py
parente5b50a129f6cb276fd20d9969cb7d300265f40e1 (diff)
parent1ed6f016b6d2c052a021cd974dbd8ab24c767dfb (diff)
Merge remote-tracking branch 'ivan-github/feature/3224_code-in-release-builds' into develop
Diffstat (limited to 'src/leap/util/leap_argparse.py')
-rw-r--r--src/leap/util/leap_argparse.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/leap/util/leap_argparse.py b/src/leap/util/leap_argparse.py
index 8300e4d8..db02e5e7 100644
--- a/src/leap/util/leap_argparse.py
+++ b/src/leap/util/leap_argparse.py
@@ -17,6 +17,8 @@
import argparse
+from leap.util import IS_RELEASE_VERSION
+
def build_parser():
"""
@@ -29,8 +31,10 @@ Launches the LEAP Client""", epilog=epilog)
parser.add_argument('-d', '--debug', action="store_true",
help=("Launches client in debug mode, writing debug"
"info to stdout"))
- parser.add_argument('--danger', action="store_true",
- help=("Bypasses the certificate check for bootstrap"))
+ if not IS_RELEASE_VERSION:
+ help_text = "Bypasses the certificate check for bootstrap"
+ parser.add_argument('--danger', action="store_true", help=help_text)
+
parser.add_argument('-l', '--logfile', metavar="LOG FILE", nargs='?',
action="store", dest="log_file",
#type=argparse.FileType('w'),