You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parser seems to remove quotes before passing in any specific options.
My use case is creating a sort of evaluation command which parses in certain options from the user like so:
User: someExampleFunction('hello')
But, I get this:
Error: ReferenceError: hello is not defined
The actual parsed string is someExampleFunction(hello).
Is there any way to get around this and stop it removing quotes before I add something like --some-option "testing" (Where I would want it to set some-option to "testing")?
@leondexelle I apologize that it's taken me so long to sift through old issues; could you try the latest version of yargs-parser and let me know if this is still happening to you? we've made a few fixes around tokenization in recent months.
Activity
bcoe commentedon Dec 25, 2018
@leondexelle I apologize that it's taken me so long to sift through old issues; could you try the latest version of yargs-parser and let me know if this is still happening to you? we've made a few fixes around tokenization in recent months.
leondexelle commentedon Dec 25, 2018
I tried this again with v11.1.1 and I'm getting the exact same output
returns:
and I want it to be
bcoe commentedon Jan 29, 2019
@leondexelle this should now be addressed in
+ [email protected], please take it for a spin 👍let me know if you continue to bump into any issues.