scio icon indicating copy to clipboard operation
scio copied to clipboard

Quotes from quoted args should be stripped from Args value

Open bbhoss opened this issue 3 years ago • 0 comments

Currently if you provide a quoted arg like: --foo="bar", when you access args("foo"), you will get a string like "\"bar\"". This works differently than other command line arg abstractions I have encountered. It seems this functionality was added in 5087e4033daa24bd75932961ca6d747c5349ecbe to help support arguments containing commas where the user didn't intend to provide multiple values for the argument.

I propose that these trailing quotes be stripped from the returned Args value, so users don't need to manually remove them if they need to utilize the functionality in the mentioned commit. In my case I am quoting all parameters to the job to prevent future bugs from users providing unexpected spaces and commas to my Flex Template.

bbhoss avatar Jun 25 '21 17:06 bbhoss