allow non string values to be passed for values#46
allow non string values to be passed for values#46lee-elenbaas wants to merge 1 commit intoyargs:masterfrom
Conversation
|
Before we review this, would you mind describing the use-case(s) this will help solve apart from doing something like the following? var parse = require('yargs-parser')
parse(['-f', 11, '--zoom', 55].join(' ')) // <-- array to single string
parse(['-f', 11, '--zoom', 55].map(String)) // <-- array of stringsEDIT: Note that I'm not opposed to this idea, but I want to make sure that:
Thanks for offering this, btw! Looking forward to your thoughts and discussion. |
|
@lee-elenbaas I think I'd rather keep the explicit contract that
provide a reasonable workaround for you? |
|
It is the workaround i am currently using - at the very least - that contract should be documented |
@lee-elenbaas Sounds reasonable to me. Thanks for bringing this up and for your understanding in this matter! |
allows for parsing of arrays like: ['--param', 15]