-
subcmd.sh works all nice. I wonder if there is a way to let the command to display the help message if no option is provided.
|
Beta Was this translation helpful? Give feedback.
Answered by
ko1nksm
May 25, 2021
Replies: 1 comment 1 reply
-
Simply call the ...
else
echo "here!"
## How to let the command to display the help message here the same as --help option??
usage
fi
... parser_definition() {
setup REST help:usage abbr:true -- \
"Usage: ${2##*/} [global options...] [command] [options...] [arguments...]"
... The |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ko1nksm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simply call the
usage
function.The
help:usage
defines a function namedusage
.