summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorael-code <tommy.ael@gmail.com>2016-11-24 15:32:13 +0100
committerael-code <tommy.ael@gmail.com>2016-11-25 15:16:26 +0100
commit601b6f8ff008c1d94351a6300816d898f08531f3 (patch)
treec720965567f2edc8968ec60ece0a654a41ce8ecd
parentfc20b110257edda823a387ed24ee9d702d06392c (diff)
downloadranger-601b6f8ff008c1d94351a6300816d898f08531f3.tar.gz
cli: added logfile option
-rw-r--r--ranger/core/main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 0626d666..341b48e6 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -197,6 +197,8 @@ def parse_arguments():
             help="activate debug mode")
     parser.add_option('-c', '--clean', action='store_true',
             help="don't touch/require any config files. ")
+    parser.add_option('--logfile', type='string', metavar='file',
+            help="log file to use, '-' for stderr")
     parser.add_option('-r', '--confdir', type='string',
             metavar='dir', default=default_confdir,
             help="change the configuration directory. (%default)")