fix: dev script be more user-friendly

This commit is contained in:
Stefan Strigler 2023-10-02 15:21:19 +02:00
parent c181a0a702
commit a8740c42cc
1 changed files with 6 additions and 0 deletions

6
dev
View File

@ -40,6 +40,7 @@ COMMANDS:
eval: Evaluate an Erlang expression eval: Evaluate an Erlang expression
OPTIONS: OPTIONS:
-h|--help: Print this usage info.
-p|--profile: emqx | emqx-enterprise, defaults to 'PROFILE' env. -p|--profile: emqx | emqx-enterprise, defaults to 'PROFILE' env.
-c|--compile: Force recompile, otherwise starts with the already built libs -c|--compile: Force recompile, otherwise starts with the already built libs
in '_build/\$PROFILE/lib/'. in '_build/\$PROFILE/lib/'.
@ -98,6 +99,10 @@ esac
while [ "$#" -gt 0 ]; do while [ "$#" -gt 0 ]; do
case $1 in case $1 in
-h|--help)
usage
exit 0
;;
-n|--name) -n|--name)
EMQX_NODE_NAME="$2" EMQX_NODE_NAME="$2"
shift 1 shift 1
@ -119,6 +124,7 @@ while [ "$#" -gt 0 ]; do
;; ;;
*) *)
logerr "Unknown argument $1" logerr "Unknown argument $1"
usage
exit 1 exit 1
;; ;;
esac esac