-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
It would set the property to an array regardless if one flag is passed or multiple flags are passed.
getopts(["-t", "lunch"], { array: ["t"] }) //=> { t: ["lunch"] }The current behavior is that t's value would be the string "lunch". This would help me eliminate some boilerplate code that checks if the value is a string or array.
Metadata
Metadata
Assignees
Labels
No labels