minimist argument as string with space breaking
See original GitHub issueI have an argument --test="hello world"
.
Using minimist
not through this library the output is
{ _: [], test: 'hello world' }
Using this library it separates the string values into
{ _: [ 'world\'' ], test: '\'hello' }
I noticed you parse the arguments, but I think something seems a bit off.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
passing string with spaces to node cli-parser - Stack Overflow
If what you need to do is break up a single string into arguments like the shell does, that is not done by...
Read more >minimist-string - npm
A minimist extension to parse command line sentences as strings. Latest version: 1.0.2, last published: 6 years ago.
Read more >Errors in pygmt when there are spaces in string arguments
The problem seems to be that in parsing of arguments in pygmt, string arguments containing spaces are broken up into separate arguments ......
Read more >Handling and Processing Strings in R - GitHub Pages
By default, the strings are concatenated with a space character as separator. ... The argument fill allows us to break long strings; this...
Read more >Parses command line arguments. Port & rewrite of the node ...
Port & rewrite to deno & typescript of the node library minimist. ... opts.string - a string or array of strings argument names...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That’d be wonderful, thanks ❤️
That makes sense - you’ve got quotes around the array:
I think that single quotes vs. double quotes matters, or at least they’re being syntax-highlighted differently.
ooh and it apparently doesn’t like numbers: