da3130a97783ec1a279abe86edc682402aa16d16
1 # shellcheck disable=SC2006
2 GOPT
=$
(getopt
-o hvpla
::e
::d
::s
:: --long help,version
,list
,plain
,userconf
,backup
::,add
::,edit
::,delete
::,show
:: -n 'bash-notes' -- "$@")
4 # shellcheck disable=SC2181
5 if [ $?
!= 0 ] ; then helptext
>&2 ; exit 1 ; fi
7 # Note the quotes around `$GOPT': they are essential!
18 echo $BASENAME v
${VERSION}
32 read -r -p "Title: " TITLE
44 read -r -p "Note ID: " NOTE
56 read -r -p "Note ID: " NOTE
68 read -r -p "Note ID: " NOTE
79 # shellcheck disable=SC2317
80 echo "config exported to \"$RCFILE\""
81 # shellcheck disable=SC2317