summaryrefslogtreecommitdiff
path: root/src/leap/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/util')
-rw-r--r--src/leap/util/leap_argparse.py4
-rw-r--r--src/leap/util/tests/test_leap_argparse.py3
2 files changed, 6 insertions, 1 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
diff --git a/src/leap/util/tests/test_leap_argparse.py b/src/leap/util/tests/test_leap_argparse.py
index 8a275f89..173c87bb 100644
--- a/src/leap/util/tests/test_leap_argparse.py
+++ b/src/leap/util/tests/test_leap_argparse.py
@@ -26,7 +26,8 @@ class LeapArgParseTest(unittest.TestCase):
Namespace(
config_file=None,
debug=True,
- log_file=None))
+ log_file=None,
+ openvpn_verb=None))
if __name__ == "__main__":
unittest.main()