Closed topaz1008 closed 1 year ago
Hello.
I have come across a problem with handling key-value options where the value starts with a - (dash) and there is no = (equals) sign. I am using Windows10 and Node.js v18.12.1
Describe the exact steps which reproduce the problem
// test.js import minimist from 'minimist'; const options = minimist(process.argv.slice(2)); console.log(options);
Running the following command gives this output:
> node test.js --command "-c:v copy" { _: [], command: true, c: ':v copy' }
Expected output:
> node test.js --command "-c:v copy" { _: [], command: '-c:v copy' }
When writing out the command using an = (equals), it works as expected. e.g.
> node test.js --command="-c:v copy" { _: [], command: '-c:v copy' }
https://github.com/minimistjs/minimist/issues/15
Hello.
I have come across a problem with handling key-value options where the value starts with a - (dash) and there is no = (equals) sign. I am using Windows10 and Node.js v18.12.1
Describe the exact steps which reproduce the problem
Running the following command gives this output:
Expected output:
When writing out the command using an = (equals), it works as expected. e.g.