use OPTARG to get key
This commit is contained in:
parent
ae75326a40
commit
b22f7005f8
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ fi
|
||||||
|
|
||||||
# org-capture key mapped to argument flags
|
# org-capture key mapped to argument flags
|
||||||
# keys=$(emacsclient -e "(+org-capture-available-keys)" | cut -d '"' -f2)
|
# keys=$(emacsclient -e "(+org-capture-available-keys)" | cut -d '"' -f2)
|
||||||
while getopts hk opt; do
|
while getopts "hk:" opt; do
|
||||||
key="\"$opt\""
|
key="\"$OPTARG\""
|
||||||
break
|
break
|
||||||
done
|
done
|
||||||
shift $((OPTIND-1))
|
shift $((OPTIND-1))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue