scripts/cita: fix `cita help`
@@ -43,7 +43,7 @@ EOF
help() {
cat <<EOF
-Usage: $SCRIPT <command>
+Usage: $SCRIPT <command> <node> [options]
This is the primary script for controlling the $SCRIPT node.
INFORMATIONAL COMMANDS
@@ -311,7 +311,13 @@ node_up_check() {
}
-if [ $# -lt 2 ]; then
+if [ "${COMMAND}" = "help" ]; then
+ help
+ exit 0
+elif [ "${COMMAND}" = "usage" ]; then
+ usage
+ exit 0
+elif [ $# -lt 2 ]; then
usage
exit 1
fi
