Added config option to help

This commit is contained in:
Jon-William Lewis
2016-08-27 13:08:40 -05:00
parent 41fc4ab4d4
commit 80c0fc556a
2 changed files with 2 additions and 1 deletions

View File

@@ -132,6 +132,7 @@ function help {
printf "\n%s" " sns [-hi]" printf "\n%s" " sns [-hi]"
printf "\n%s" " -c | --create : Create note" printf "\n%s" " -c | --create : Create note"
printf "\n%s" " -C | --config : Edit Config"
printf "\n%s" " -d | --delete : Delete note" printf "\n%s" " -d | --delete : Delete note"
printf "\n%s" " -e | --edit : Open note for editing" printf "\n%s" " -e | --edit : Open note for editing"
printf "\n%s" " -h | --help : Display this message" printf "\n%s" " -h | --help : Display this message"

View File

@@ -105,7 +105,7 @@ else
CREATE="TRUE" CREATE="TRUE"
OP="TRUE" OP="TRUE"
;; ;;
--config) -C|--config)
if [ -z "$EDITOR" ]; then if [ -z "$EDITOR" ]; then
printf "$YELLOW_COLOR!$RESET_COLOR - %s\n"\ printf "$YELLOW_COLOR!$RESET_COLOR - %s\n"\
"No editor defined. Defaulting to vi." "No editor defined. Defaulting to vi."