dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

Escape sequence? #259

Open laurent22 opened 7 years ago

laurent22 commented 7 years ago

I couldn't find information about this in the documentation but is there a way to escape single quotes and double quotes in Vorpal?

I know I can enclose strings that contains quotes in single quotes and vice-versa, but what if the string contains both single and double-quotes? In bash I could write this as my \" quotes \' but that doesn't seem to work with Vorpal. Any suggestion or is it just not supported?

DrMiaow commented 5 years ago

+1

receter commented 5 years ago

+1

arthurafarias commented 4 years ago

+1

arthurafarias commented 4 years ago

I am trying to pass something like

the command layout is cmd [argument]

the test cases are cmd 'a=b c=d aaa-bbb-ccc=1' cmd "a=b c=d aaa-bbb-ccc=1"

they don't work.