diff options
author | skullY <skullydazed@gmail.com> | 2019-11-12 17:27:08 -0800 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-11-12 18:41:38 -0800 |
commit | 79edb7c5942108774e667c172550a1519c5543ac (patch) | |
tree | 37fc007c4548f2cb86f51c6608b7da14e30acec0 /lib/python/qmk/cli/config.py | |
parent | d1b6c11b7f4cc24c50d2b640a94925acf6450da6 (diff) | |
download | qmk_firmware-79edb7c5942108774e667c172550a1519c5543ac.tar.gz qmk_firmware-79edb7c5942108774e667c172550a1519c5543ac.zip |
Small CLI cleanups
* yapf changes
* Fix the cformat test
* Make the normpath test work when run from /
* `qmk config`: Mark `--read-only` as arg_only
Diffstat (limited to 'lib/python/qmk/cli/config.py')
-rw-r--r-- | lib/python/qmk/cli/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/config.py b/lib/python/qmk/cli/config.py index d6c774e65..c4ee20cba 100644 --- a/lib/python/qmk/cli/config.py +++ b/lib/python/qmk/cli/config.py | |||
@@ -12,7 +12,7 @@ def print_config(section, key): | |||
12 | cli.echo('%s.%s{fg_cyan}={fg_reset}%s', section, key, cli.config[section][key]) | 12 | cli.echo('%s.%s{fg_cyan}={fg_reset}%s', section, key, cli.config[section][key]) |
13 | 13 | ||
14 | 14 | ||
15 | @cli.argument('-ro', '--read-only', action='store_true', help='Operate in read-only mode.') | 15 | @cli.argument('-ro', '--read-only', arg_only=True, action='store_true', help='Operate in read-only mode.') |
16 | @cli.argument('configs', nargs='*', arg_only=True, help='Configuration options to read or write.') | 16 | @cli.argument('configs', nargs='*', arg_only=True, help='Configuration options to read or write.') |
17 | @cli.subcommand("Read and write configuration settings.") | 17 | @cli.subcommand("Read and write configuration settings.") |
18 | def config(cli): | 18 | def config(cli): |