Open git-developer opened 5 months ago
Why would a key ever contain a dot?
I just mentioned this for the sake of completeness. I don't know of any practical use case either.
The actual use case is to leave args untouched so that they can be post-processed using a different library that is able to build both objects and arrays (originally mentioned here).
Somewhat related Minimist issues:
'_'
to opts.string
(#53)And related yargs-parser
configuration:
Minimist supports a dotted notation that may be used to build an object tree from args:
This issue is a request to allow a user to disable this feature, so that the above example is parsed as
foo.bar: 'x'
instead offoo: { bar: 'x' }
.Motivation: the dotted notation supports neither arrays nor keys containing a dot. That makes it hard to use minimist if any of these is used in the application.
Related: #67, #69