diff options
author | QMK Bot <hello@qmk.fm> | 2021-04-15 02:00:59 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-04-15 02:00:59 +0000 |
commit | 2c0aa27e6c0db68c026d2e8d1b416bac5e9599a5 (patch) | |
tree | 8b0bb8f960c3edb631e30d391eb69443c85c48c2 /lib/python/qmk/cli/cformat.py | |
parent | 19b143688fabcad7ffd192e56642232f1a08fdae (diff) | |
parent | 588bcdc8ca212b195a428fc43766a59a9252c08d (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib/python/qmk/cli/cformat.py')
-rw-r--r-- | lib/python/qmk/cli/cformat.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/cformat.py b/lib/python/qmk/cli/cformat.py index c7e93b2ab6..d0d3b3b0a3 100644 --- a/lib/python/qmk/cli/cformat.py +++ b/lib/python/qmk/cli/cformat.py @@ -3,6 +3,7 @@ import subprocess from shutil import which +from argcomplete.completers import FilesCompleter from milc import cli from qmk.path import normpath @@ -33,7 +34,7 @@ def cformat_run(files, all_files): @cli.argument('-a', '--all-files', arg_only=True, action='store_true', help='Format all core files.') @cli.argument('-b', '--base-branch', default='origin/master', help='Branch to compare to diffs to.') -@cli.argument('files', nargs='*', arg_only=True, help='Filename(s) to format.') +@cli.argument('files', nargs='*', arg_only=True, completer=FilesCompleter('.c'), help='Filename(s) to format.') @cli.subcommand("Format C code according to QMK's style.", hidden=False if cli.config.user.developer else True) def cformat(cli): """Format C code according to QMK's style. |