Set star_args_optional for :config-cycle
This commit is contained in:
parent
22adcfba75
commit
6c2958b646
@ -217,7 +217,7 @@ Set all settings back to their default.
|
||||
|
||||
[[config-cycle]]
|
||||
=== config-cycle
|
||||
Syntax: +:config-cycle [*--temp*] [*--print*] 'option' 'values' ['values' ...]+
|
||||
Syntax: +:config-cycle [*--temp*] [*--print*] 'option' ['values' ['values' ...]]+
|
||||
|
||||
Cycle an option between multiple values.
|
||||
|
||||
|
@ -135,7 +135,7 @@ class ConfigCommands:
|
||||
except configexc.KeybindingError as e:
|
||||
raise cmdexc.CommandError('unbind: {}'.format(e))
|
||||
|
||||
@cmdutils.register(instance='config-commands')
|
||||
@cmdutils.register(instance='config-commands', star_args_optional=True)
|
||||
@cmdutils.argument('option', completion=configmodel.option)
|
||||
@cmdutils.argument('values', completion=configmodel.value)
|
||||
def config_cycle(self, option, *values, temp=False, print_=False):
|
||||
|
Loading…
Reference in New Issue
Block a user