From 98f168e422f2a21968bc368643cd282097fc5142 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Tue, 23 Jul 2013 13:44:08 -0300 Subject: Do not allow the use of 'danger' flag in release. --- src/leap/util/leap_argparse.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/leap/util/leap_argparse.py') 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'), -- cgit v1.2.3