krieselreihe / litr

Litr (Language Independent Task Runner) lets you configure and then run any tasks you want for any language.
MIT License
8 stars 0 forks source link

String quotes are stripped before accessed via `argv` #20

Open MartinHelmut opened 3 years ago

MartinHelmut commented 3 years ago

All string command line arguments that are passed down to argv get stripped of string quotes by the caller (e.g. Bash). If so quotes need either to be inserted again or the whole argument list needs to be accessed in full.

Ways of doing this could be the GetCommandLineA function (processenv.h) in windows [source] or the _NSGetArgv access property (crt_externs.h) for Mac [source].