[core/config] Add stub for autohide

Add stub for autohide so that my status bar doesn't terminate with an
error (easier testing)
This commit is contained in:
Tobias Witek 2020-02-22 13:44:44 +01:00
parent 38410adcb8
commit ef75e593f7

View file

@ -18,6 +18,8 @@ class Config(util.store.Store):
parser.add_argument('-t', '--theme', default='default', help=THEME_HELP) parser.add_argument('-t', '--theme', default='default', help=THEME_HELP)
parser.add_argument('-i', '--iconset', default='auto', parser.add_argument('-i', '--iconset', default='auto',
help='Specify the name of an iconset to use (overrides theme default)') help='Specify the name of an iconset to use (overrides theme default)')
parser.add_argument("-a", "--autohide", nargs="+", default=[],
help="Specify a list of modules to hide when not in warning/error state")
self._args = parser.parse_args(args) self._args = parser.parse_args(args)
parameters = [ item for sub in self._args.parameters for item in sub ] parameters = [ item for sub in self._args.parameters for item in sub ]