diff options
author | Tomás Touceda <chiiph@leap.se> | 2014-04-02 16:03:02 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2014-04-02 16:03:02 -0300 |
commit | 2468b0eda7db1169d44a95f4c71c8cee323dfcf3 (patch) | |
tree | 46d35c93fbb8030eb0da0bceff776c47825e350d /src/leap/bitmask/util/leap_argparse.py | |
parent | f33cbc3a7e92ce742ee213018d16152f4996b64e (diff) | |
parent | 5b21dfa2ca18ef4840d908b27228f55b8e65b172 (diff) |
Merge remote-tracking branch 'refs/remotes/ivan/feature/5391_support-selfsigned-certs' into develop
Diffstat (limited to 'src/leap/bitmask/util/leap_argparse.py')
-rw-r--r-- | src/leap/bitmask/util/leap_argparse.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/leap/bitmask/util/leap_argparse.py b/src/leap/bitmask/util/leap_argparse.py index 56bf26dc..88267ff8 100644 --- a/src/leap/bitmask/util/leap_argparse.py +++ b/src/leap/bitmask/util/leap_argparse.py @@ -27,9 +27,10 @@ def build_parser(): All the options for the leap arg parser Some of these could be switched on only if debug flag is present! """ - epilog = "Copyright 2012-2014 The LEAP Encryption Access Project" - parser = argparse.ArgumentParser(description=""" -Launches the Bitmask client.""", epilog=epilog) + parser = argparse.ArgumentParser( + description="Launches the Bitmask client.", + epilog="Copyright 2012-2014 The LEAP Encryption Access Project") + parser.add_argument('-d', '--debug', action="store_true", help=("Launches Bitmask in debug mode, writing debug " "info to stdout.")) @@ -92,6 +93,12 @@ Launches the Bitmask client.""", epilog=epilog) "Use at your own risk!") parser.add_argument('--danger', action="store_true", help=help_text) + # optional cert file used to check domains with self signed certs. + parser.add_argument('--ca-cert-file', metavar="/path/to/cacert.pem", + nargs='?', action="store", dest="ca_cert_file", + help='Uses the given cert file to verify ' + 'against domains.') + # Not in use, we might want to reintroduce them. #parser.add_argument('-i', '--no-provider-checks', #action="store_true", default=False, |