Added config option to help
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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."
|
||||||
|
|||||||
Reference in New Issue
Block a user