[config] Add logfile location parameter
Add commandline parameter to specify the logfile location. see #62
This commit is contained in:
parent
e5db3d825d
commit
e6df55b3cb
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue