1 # shellcheck disable=SC2006
2 GOPT
=$
(getopt
-o hvplr
:a
:e
:d
:s
: --long help,version
,list
,plain
,userconf
,showconf
,sync
,restore
:,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}
55 # I'm forcing it because if you run it manually, chances are that you need to.
62 # shellcheck disable=SC2317
63 echo "config exported to \"$RCFILE\""
64 # shellcheck disable=SC2317
87 if [ $
(check_noteID
$arg) ]; then