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