echo "note not found"
exit 1
fi
+ exit
}
function listnotes() {
# [ $PLAIN == true ] && echo "output is plain text" || echo "output is colored"
esac
shift 2
addnote "$TITLE"
+ exit
;;
-e | --edit )
case "$2" in
esac
shift 2
editnote "$NOTE"
+ exit
;;
-d | --delete )
case "$2" in
esac
shift 2
rmnote "$NOTE"
+ exit
;;
-s | --show )
case "$2" in
esac
shift 2
shownote "$NOTE"
+ exit
;;
--userconf )
export_config
;;
esac
done
-
-if [ -z $1 ]; then
- helptext
-fi