dev-cafe / autocmake

CMake plugin composer.
http://autocmake.org
BSD 3-Clause "New" or "Revised" License
42 stars 18 forks source link

preserve quotes in setup_command; closes #169 #264

Closed bast closed 4 years ago

bast commented 4 years ago

The problem is that sys.argv has been stripped of quotes by the shell but docopt's arguments contains quotes.

So what we do is cycle through all docopt arguments: if they are also present in the joined sys.argv string and contain spaces, we add quotes to the strings we find.

ilfreddy commented 4 years ago

Nice! No WARNINGbut a true fix!!

bast commented 4 years ago

I thought this was impossible so I am quite happy about this solution.