Open
Description
This is not what I was expecting:
source "$(command -v docopts).sh"
declare -A args
args['FILE,#']=2
args['FILE,0']=somefile1
args['FILE,1']='some file with space inside'
array=( $(docopt_get_values args FILE) )
if [[ "${array[1]}" != 'some file with space inside' ]] ; then
echo "element #1 is not properly set"
fi
if [[ "${array[*]}" == 'somefile1 some file with space inside' ]] ; then
echo "5 elements - 1 per word"
fi
There is no indication it should not work in docs or comments