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