diff options
Diffstat (limited to 'lib/python/qmk/cli/c2json.py')
| -rw-r--r-- | lib/python/qmk/cli/c2json.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/c2json.py b/lib/python/qmk/cli/c2json.py index b9d55ebdb..a97e21222 100644 --- a/lib/python/qmk/cli/c2json.py +++ b/lib/python/qmk/cli/c2json.py | |||
| @@ -7,12 +7,13 @@ from milc import cli | |||
| 7 | import qmk.keymap | 7 | import qmk.keymap |
| 8 | import qmk.path | 8 | import qmk.path |
| 9 | from qmk.info_json_encoder import InfoJSONEncoder | 9 | from qmk.info_json_encoder import InfoJSONEncoder |
| 10 | from qmk.keyboard import keyboard_folder | ||
| 10 | 11 | ||
| 11 | 12 | ||
| 12 | @cli.argument('--no-cpp', arg_only=True, action='store_false', help='Do not use \'cpp\' on keymap.c') | 13 | @cli.argument('--no-cpp', arg_only=True, action='store_false', help='Do not use \'cpp\' on keymap.c') |
| 13 | @cli.argument('-o', '--output', arg_only=True, type=qmk.path.normpath, help='File to write to') | 14 | @cli.argument('-o', '--output', arg_only=True, type=qmk.path.normpath, help='File to write to') |
| 14 | @cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages") | 15 | @cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages") |
| 15 | @cli.argument('-kb', '--keyboard', arg_only=True, required=True, help='The keyboard\'s name') | 16 | @cli.argument('-kb', '--keyboard', arg_only=True, type=keyboard_folder, required=True, help='The keyboard\'s name') |
| 16 | @cli.argument('-km', '--keymap', arg_only=True, required=True, help='The keymap\'s name') | 17 | @cli.argument('-km', '--keymap', arg_only=True, required=True, help='The keymap\'s name') |
| 17 | @cli.argument('filename', arg_only=True, help='keymap.c file') | 18 | @cli.argument('filename', arg_only=True, help='keymap.c file') |
| 18 | @cli.subcommand('Creates a keymap.json from a keymap.c file.') | 19 | @cli.subcommand('Creates a keymap.json from a keymap.c file.') |
