From e6df55b3cb0ce3352ddfe526c432c2baaf2ce165 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Tue, 4 Apr 2017 15:14:54 +0200 Subject: [PATCH] [config] Add logfile location parameter Add commandline parameter to specify the logfile location. see #62 --- bumblebee/config.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bumblebee/config.py b/bumblebee/config.py index 53d3d1d..4e746bd 100644 --- a/bumblebee/config.py +++ b/bumblebee/config.py @@ -56,6 +56,9 @@ def create_parser(): help=LIST_HELP) parser.add_argument("-d", "--debug", action="store_true", help=DEBUG_HELP) + parser.add_argument("-f", "--logfile", default="~/bumblebee-status-debug.log", + help="Location of the debug log file") + return parser class Config(bumblebee.store.Store): @@ -86,5 +89,11 @@ class Config(bumblebee.store.Store): def theme(self): """Return the name of the selected theme""" return self._args.theme + + def debug(self): + return self._args.debug + + def logfile(self): + return self._args.logfile # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4