#!/usr/bin/env sh
## Self documenting Script
## This documentation block will appear when the help flag or invalid inputs are used
## Usage: __PROG__ [options]
##
prog="$0"
me=`basename "$prog"`

# Lines starting with '##' are intended for usage documentation
function usage() {
  grep '^##' "$prog" | sed -e 's/^##\s\?//' -e "s/__PROG__/$me/" 1>&2
}

# Print usage
if [[ "$1" == "-h" || "$1" == "--help" ]]; then
  usage
  exit;
fi


# Do some useful script task
echo "This script has help.  Use the --help flag"

