diff options
author | Erovia <erovia@users.noreply.github.com> | 2019-11-27 21:27:06 +0100 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-06-12 17:00:27 +0900 |
commit | 2137d514322e4b67f2f0290d8415abf3fd691da8 (patch) | |
tree | a778e9919ec3c9e8c18dcc9b0ca88f148e07369d /lib/python/qmk/cli/hello.py | |
parent | 7777c0454712128670f98a5c7f62da01f7c0aa58 (diff) |
CLI: Add development mode support
Hide development specific options and don't require dev modules unless
`user.developer` is set to `True`.
Diffstat (limited to 'lib/python/qmk/cli/hello.py')
-rwxr-xr-x | lib/python/qmk/cli/hello.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/hello.py b/lib/python/qmk/cli/hello.py index bee28c3013..5119188a07 100755 --- a/lib/python/qmk/cli/hello.py +++ b/lib/python/qmk/cli/hello.py @@ -6,7 +6,7 @@ from milc import cli @cli.argument('-n', '--name', default='World', help='Name to greet.') -@cli.subcommand('QMK Hello World.') +@cli.subcommand('QMK Hello World.', hidden=False if cli.config.user.developer else True) def hello(cli): """Log a friendly greeting. """ |