Merge pull request #2514 from Accacio/patch-1
use OPTARG to get key argument
This commit is contained in:
commit
a6e334eb51
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue