-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow not to flatten duplicate array types
Lets you disable flattening of multiple array type values ``` yargsParser('-x a b -x c d', {array: ['x]}) // => {x: ['a', 'b', 'c', 'd']} // all flattened ``` ``` yargsParser('-x a b -x c d', {array: ['x], configuration:{'flatten-duplicate-arrays': false}}) // => {x: [['a', 'b'], ['c', 'd']]} // multiple nested arrays ```
- Loading branch information
1 parent
d23b473
commit 4b41e35
Showing
2 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters