[config] Add logfile location parameter

Add commandline parameter to specify the logfile location.

see #62
This commit is contained in:
tobi-wan-kenobi 2017-04-04 15:14:54 +02:00 committed by GitHub
parent e5db3d825d
commit e6df55b3cb

View file

@ -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):
@ -87,4 +90,10 @@ class Config(bumblebee.store.Store):
"""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