Closed git-developer closed 1 month ago
Minimist supports a dotted notation that may be used to build an object tree from args:
$ node index.js --foo.bar=x { _: [], foo: { bar: 'x' } }
This PR is a feature request to extend this syntax for arrays.
Ideas:
--foo.0.bar=x
foo: [ bar: 'x' ]
--foo[0].bar=x
Some thoughts have already been discussed in the first PR.
Closed due to comment.
Minimist supports a dotted notation that may be used to build an object tree from args:
This PR is a feature request to extend this syntax for arrays.
Ideas:
--foo.0.bar=x
⇒foo: [ bar: 'x' ]
- #66--foo[0].bar=x
⇒foo: [ bar: 'x' ]
- #68Some thoughts have already been discussed in the first PR.