summaryrefslogtreecommitdiff
path: root/src/leap/util
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-05 07:54:10 +0900
committerkali <kali@leap.se>2012-09-05 07:54:10 +0900
commit813a97957572aad97d50319db96b55a74b8ed307 (patch)
treee559f10fe8a3f9c5746a29ae8bd2aa808998e552 /src/leap/util
parenta2804c3de1470db98d8c6aa8a01e2de1aa1718a1 (diff)
can log to logfile
app.py --debug --logfile /tmp/foo.log
Diffstat (limited to 'src/leap/util')
-rw-r--r--src/leap/util/leap_argparse.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/util/leap_argparse.py b/src/leap/util/leap_argparse.py
index 9c355134..f329cf3e 100644
--- a/src/leap/util/leap_argparse.py
+++ b/src/leap/util/leap_argparse.py
@@ -11,6 +11,10 @@ Launches main LEAP Client""", epilog=epilog)
action="store", dest="config_file",
type=argparse.FileType('r'),
help='optional config file')
+ parser.add_argument('--logfile', metavar="LOG FILE", nargs='?',
+ action="store", dest="log_file",
+ #type=argparse.FileType('w'),
+ help='optional log file')
return parser