diff options
author | Zach White <skullydazed@gmail.com> | 2021-08-28 23:02:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-28 23:02:31 -0700 |
commit | c729df09cacb81111a9830a8c3b75210a64d3198 (patch) | |
tree | c29528076aa530e5ab9580162a74e0116c4a65cd /lib/python | |
parent | 566d59851634bf0ffb5b95dd85f65858b0905dc7 (diff) | |
download | qmk_firmware-c729df09cacb81111a9830a8c3b75210a64d3198.tar.gz qmk_firmware-c729df09cacb81111a9830a8c3b75210a64d3198.zip |
fix automatic directory for qmk lint (#14215)
Diffstat (limited to 'lib/python')
-rw-r--r-- | lib/python/qmk/cli/lint.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/python/qmk/cli/lint.py b/lib/python/qmk/cli/lint.py index 008ec1393..96593ed69 100644 --- a/lib/python/qmk/cli/lint.py +++ b/lib/python/qmk/cli/lint.py | |||
@@ -58,10 +58,10 @@ def rules_mk_assignment_only(keyboard_path): | |||
58 | return errors | 58 | return errors |
59 | 59 | ||
60 | 60 | ||
61 | @cli.argument('--strict', action='store_true', help='Treat warnings as errors.') | 61 | @cli.argument('--strict', action='store_true', help='Treat warnings as errors') |
62 | @cli.argument('-kb', '--keyboard', completer=keyboard_completer, help='The keyboard to check.') | 62 | @cli.argument('-kb', '--keyboard', completer=keyboard_completer, help='Comma separated list of keyboards to check') |
63 | @cli.argument('-km', '--keymap', help='The keymap to check.') | 63 | @cli.argument('-km', '--keymap', help='The keymap to check') |
64 | @cli.argument('--all-kb', action='store_true', arg_only=True, help='Check all keyboards.') | 64 | @cli.argument('--all-kb', action='store_true', arg_only=True, help='Check all keyboards') |
65 | @cli.subcommand('Check keyboard and keymap for common mistakes.') | 65 | @cli.subcommand('Check keyboard and keymap for common mistakes.') |
66 | @automagic_keyboard | 66 | @automagic_keyboard |
67 | @automagic_keymap | 67 | @automagic_keymap |
@@ -81,7 +81,7 @@ def lint(cli): | |||
81 | cli.print_help() | 81 | cli.print_help() |
82 | return False | 82 | return False |
83 | else: | 83 | else: |
84 | keyboard_list = cli.args.keyboard.split(',') | 84 | keyboard_list = cli.config.lint.keyboard.split(',') |
85 | 85 | ||
86 | # Lint each keyboard | 86 | # Lint each keyboard |
87 | for kb in keyboard_list: | 87 | for kb in keyboard_list: |