diff options
author | kali <kali@leap.se> | 2012-09-12 10:32:22 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-09-12 10:32:22 +0900 |
commit | 99058b9f6536a3717ab82a9d77b09d5489334eb5 (patch) | |
tree | 3ad3b3c32153b6d19d7a6c2b2dd17c30becc0c65 /src/leap/util/leap_argparse.py | |
parent | 65b953117765a88ec6fb6ba9f3b36bc1434133a4 (diff) |
add openvpn-verb option to cli.
Closes #534. accepts int [1-6] that get passed to openvpn invocation.
We should filter out the polling "state"/"status" commands from the log if
we want it to be real useful.
Diffstat (limited to 'src/leap/util/leap_argparse.py')
-rw-r--r-- | src/leap/util/leap_argparse.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/util/leap_argparse.py b/src/leap/util/leap_argparse.py index f329cf3e..3b38aa77 100644 --- a/src/leap/util/leap_argparse.py +++ b/src/leap/util/leap_argparse.py @@ -15,6 +15,10 @@ Launches main LEAP Client""", epilog=epilog) action="store", dest="log_file", #type=argparse.FileType('w'), help='optional log file') + parser.add_argument('--openvpn-verbosity', nargs='?', + type=int, + action="store", dest="openvpn_verb", + help='verbosity level for openvpn logs [1-6]') return parser |