minimistjs / minimist

parse argument options
MIT License
515 stars 30 forks source link

Support for arrays in dotted notation #69

Closed git-developer closed 1 month ago

git-developer commented 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:

Some thoughts have already been discussed in the first PR.

git-developer commented 1 month ago

Closed due to comment.