diff options
author | Ryan <fauxpark@gmail.com> | 2020-10-07 10:46:10 +1100 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2021-01-12 22:43:31 -0800 |
commit | ae5ee61e7bbf24d3dc36c1a309d3af25a00a5444 (patch) | |
tree | b44b65ac08b5e823eab84e349cdc0e260d748e81 /lib/python/qmk/cli/json2c.py | |
parent | cce4f22e3a88cce06d8e199756984642c8eb5c44 (diff) |
CLI: update subcommands to use return instead of exit() (#10323)
Diffstat (limited to 'lib/python/qmk/cli/json2c.py')
-rwxr-xr-x | lib/python/qmk/cli/json2c.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/json2c.py b/lib/python/qmk/cli/json2c.py index af0d80a9ac..2a90094368 100755 --- a/lib/python/qmk/cli/json2c.py +++ b/lib/python/qmk/cli/json2c.py @@ -22,12 +22,12 @@ def json2c(cli): # TODO(skullydazed/anyone): Read file contents from STDIN cli.log.error('Reading from STDIN is not (yet) supported.') cli.print_usage() - exit(1) + return False if not cli.args.filename.exists(): cli.log.error('JSON file does not exist!') cli.print_usage() - exit(1) + return False # Environment processing if cli.args.output and cli.args.output.name == '-': |