fix(bin/emqx): print usage when no command given

This commit is contained in:
Zaiming (Stone) Shi 2022-01-12 08:18:44 +01:00
parent 32d1547c03
commit 635b056e03
1 changed files with 5 additions and 0 deletions

View File

@ -199,6 +199,11 @@ usage() {
COMMAND="${1:-}"
if [ -z "$COMMAND" ]; then
usage 'nil'
exit 1
fi
if [ "${2:-}" = 'help' ]; then
## 'ctl' command has its own usage info
if [ "$COMMAND" != 'ctl' ]; then