function usage() {
echo "Usage:" $(basename $0) Explain options here"
exit 0
}
[ -z $1 ] && { usage; }
Related
See also
if
, man test
, -z, elif
, Braket
- Command-line argument parsing,
argparse
, optparse
, click
, inquirer
, docopt
, help
, usage
, minimist