#!/usr/bin/env dash set -e -u # the name of this program progname="$(basename "${0}")" help_text="Usage: ${progname} [OPTION...] FILENAME Compose a new note Options: -h Print this help and exit -r Whether this note should be a reply " usage() { printf '%s' "${help_text}" } # when the user passess bad args, send a msg to stderr and exit # usage: bad_option