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
But I expect multiple --volume and in that case it doesn't work (as expected):
command --volume some thing --volume some other thing
I get a flattened array ['some', 'thing', 'some', 'other', 'thing']
The expected result is to get an array of arrays, right? Like had the option been a string I'd get either a string (for single argument), or an array of strings for multiple arguments. Similarly I should expect to get either an array, or an array of arrays, no? Why the flattening?
The text was updated successfully, but these errors were encountered:
@laggingreflex both new configuration options are out in yargs@6.5.0; there is one bug fix we should make to yargs-parser, but I didn't feel it was severe enough to block the release.
I have a command option like this:
So this works as expected:
I get an array
['some', 'thing']
But I expect multiple
--volume
and in that case it doesn't work (as expected):I get a flattened array ['some', 'thing', 'some', 'other', 'thing']
The expected result is to get an array of arrays, right? Like had the option been a string I'd get either a string (for single argument), or an array of strings for multiple arguments. Similarly I should expect to get either an array, or an array of arrays, no? Why the flattening?
The text was updated successfully, but these errors were encountered: