fix(bin/emqx): print usage when no command given
This commit is contained in:
parent
32d1547c03
commit
635b056e03
5
bin/emqx
5
bin/emqx
|
@ -199,6 +199,11 @@ usage() {
|
||||||
|
|
||||||
COMMAND="${1:-}"
|
COMMAND="${1:-}"
|
||||||
|
|
||||||
|
if [ -z "$COMMAND" ]; then
|
||||||
|
usage 'nil'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${2:-}" = 'help' ]; then
|
if [ "${2:-}" = 'help' ]; then
|
||||||
## 'ctl' command has its own usage info
|
## 'ctl' command has its own usage info
|
||||||
if [ "$COMMAND" != 'ctl' ]; then
|
if [ "$COMMAND" != 'ctl' ]; then
|
||||||
|
|
Loading…
Reference in New Issue