diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-07-23 13:44:08 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2013-07-23 13:44:08 -0300 |
commit | 98f168e422f2a21968bc368643cd282097fc5142 (patch) | |
tree | 23b92b627339a9ef7e2abc9db19c966531615f8a /src/leap | |
parent | f8e48af9c9020d9f87a03cf10bdf9b4f60e632a1 (diff) |
Do not allow the use of 'danger' flag in release.
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/util/leap_argparse.py | 8 |
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'), |