Don't split value for set commands

This commit is contained in:
Florian Bruhin 2014-04-17 12:06:48 +02:00
parent b323706f5f
commit 3eca7d6847
2 changed files with 2 additions and 3 deletions

1
TODO
View File

@ -1,7 +1,6 @@
Bugs
====
keybind doesn't work properly because it only wants 1 argument for cmd
dump_userconfig dumps everything for ValueList sections
All kind of FIXMEs
Weird font rendering

View File

@ -266,7 +266,7 @@ class Config(QObject):
newval = val.typ.transform(newval)
return newval
@cmdutils.register(name='set', instance='config',
@cmdutils.register(name='set', instance='config', maxsplit=2,
completion=['section', 'option', 'value'])
def set_wrapper(self, section, option, value):
"""Set an option.
@ -281,7 +281,7 @@ class Config(QObject):
except (NoOptionError, NoSectionError, ValidationError) as e:
message.error("set: {} - {}".format(e.__class__.__name__, e))
@cmdutils.register(name='set_temp', instance='config',
@cmdutils.register(name='set_temp', instance='config', maxsplit=2,
completion=['section', 'option', 'value'])
def set_temp_wrapper(self, section, option, value):
"""Set a temporary option.