diff options
Diffstat (limited to 'lib/python/qmk/cli/cformat.py')
-rw-r--r-- | lib/python/qmk/cli/cformat.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/qmk/cli/cformat.py b/lib/python/qmk/cli/cformat.py index 91e650368..d2382bdbd 100644 --- a/lib/python/qmk/cli/cformat.py +++ b/lib/python/qmk/cli/cformat.py | |||
@@ -6,9 +6,9 @@ import subprocess | |||
6 | from milc import cli | 6 | from milc import cli |
7 | 7 | ||
8 | 8 | ||
9 | @cli.argument('files', nargs='*', help='Filename(s) to format.') | 9 | @cli.argument('files', nargs='*', arg_only=True, help='Filename(s) to format.') |
10 | @cli.entrypoint("Format C code according to QMK's style.") | 10 | @cli.subcommand("Format C code according to QMK's style.") |
11 | def main(cli): | 11 | def cformat(cli): |
12 | """Format C code according to QMK's style. | 12 | """Format C code according to QMK's style. |
13 | """ | 13 | """ |
14 | clang_format = ['clang-format', '-i'] | 14 | clang_format = ['clang-format', '-i'] |