# Help requires no arguments, and is exclusive. if [ -n "$HELP" ]; then help; exit 0; fi # List only requires a notebook, and is exclusive. if [ -z "$NOTEBOOK" ]; then echo " ERROR: Insufficient arguments:" echo " Notebook not specified" exit 30 fi if [ -n "$LIST" ]; then list exit 0 fi #All other functions require a note title and notebook. if [ -z "$NAME" ]; then echo " ERROR: Insufficient arguments:" echo " Title not specified" exit 30 fi NOTEDIR=$BASEDIR/$NOTEBOOK/$SECTION/ NOTE=$NOTEDIR$NAME.$EXT if [ "$ENCRYPTION" == "TRUE" ]; then NOTE=$NOTE.tmp fi