Revision 1bd4f765 kamaki/cli/argument/__init__.py
b/kamaki/cli/argument/__init__.py | ||
---|---|---|
144 | 144 |
_config_arg = ConfigArgument('Path to config file') |
145 | 145 |
|
146 | 146 |
|
147 |
class CmdLineConfigArgument(Argument):
|
|
147 |
class RuntimeConfigArgument(Argument):
|
|
148 | 148 |
"""Set a run-time setting option (not persistent)""" |
149 | 149 |
|
150 | 150 |
def __init__(self, config_arg, help='', parsed_name=None, default=None): |
... | ... | |
384 | 384 |
silent=FlagArgument('Do not output anything', ('-s', '--silent')), |
385 | 385 |
verbose=FlagArgument('More info at response', ('-v', '--verbose')), |
386 | 386 |
version=VersionArgument('Print current version', ('-V', '--version')), |
387 |
options=CmdLineConfigArgument(
|
|
387 |
options=RuntimeConfigArgument(
|
|
388 | 388 |
_config_arg, 'Override a config value', ('-o', '--options')) |
389 | 389 |
) |
390 | 390 |
|
Also available in: Unified diff