Maybe i’m being obtuse, but can I have an option a...
# clikt
j
Maybe i’m being obtuse, but can I have an option accept a string that includes whitespace? This:
Copy code
script --some-option="two words"
sets
--some-option
to
two
and then passes
words
as an argument
a
Yes, that should work fine. Your shell is responsible for tokenizing, if a quoted string is split up, that's done before clikt sees it. (you can confim that by just printing
argv
). Are you doing some
$@
argument expansion in a bash script and missing quotes?
j
Are you doing some
$@
argument expansion in a bash script and missing quotes?
I sure am, that was exactly it. Fixed now. Thanks! (and fantastic library by the way)