Set star_args_optional for :config-cycle

This commit is contained in:
Florian Bruhin 2017-10-03 20:49:16 +02:00
parent 22adcfba75
commit 6c2958b646
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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):