Merge pull request #2514 from Accacio/patch-1

use OPTARG to get key argument
This commit is contained in:
Henrik Lissner 2020-02-11 03:25:19 -05:00 committed by GitHub
commit a6e334eb51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,8 +22,8 @@ fi
# org-capture key mapped to argument flags
# keys=$(emacsclient -e "(+org-capture-available-keys)" | cut -d '"' -f2)
while getopts hk opt; do
key="\"$opt\""
while getopts "hk:" opt; do
key="\"$OPTARG\""
break
done
shift $((OPTIND-1))