diff options
Diffstat (limited to 'lib/python/qmk/cli/kle2json.py')
-rwxr-xr-x | lib/python/qmk/cli/kle2json.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/kle2json.py b/lib/python/qmk/cli/kle2json.py index 91499c9af..acb75ef4f 100755 --- a/lib/python/qmk/cli/kle2json.py +++ b/lib/python/qmk/cli/kle2json.py | |||
@@ -4,6 +4,7 @@ import json | |||
4 | import os | 4 | import os |
5 | from pathlib import Path | 5 | from pathlib import Path |
6 | 6 | ||
7 | from argcomplete.completers import FilesCompleter | ||
7 | from milc import cli | 8 | from milc import cli |
8 | from kle2xy import KLE2xy | 9 | from kle2xy import KLE2xy |
9 | 10 | ||
@@ -11,7 +12,7 @@ from qmk.converter import kle2qmk | |||
11 | from qmk.json_encoders import InfoJSONEncoder | 12 | from qmk.json_encoders import InfoJSONEncoder |
12 | 13 | ||
13 | 14 | ||
14 | @cli.argument('filename', help='The KLE raw txt to convert') | 15 | @cli.argument('filename', completer=FilesCompleter('.json'), help='The KLE raw txt to convert') |
15 | @cli.argument('-f', '--force', action='store_true', help='Flag to overwrite current info.json') | 16 | @cli.argument('-f', '--force', action='store_true', help='Flag to overwrite current info.json') |
16 | @cli.subcommand('Convert a KLE layout to a Configurator JSON', hidden=False if cli.config.user.developer else True) | 17 | @cli.subcommand('Convert a KLE layout to a Configurator JSON', hidden=False if cli.config.user.developer else True) |
17 | def kle2json(cli): | 18 | def kle2json(cli): |