Array types
egoist opened this issue · 1 comments
egoist commented
Issue Type
- Bug Report
- Feature Request
- Other
Expected
cli.option('--externals <external>', 'Add externals (can be used for multiple times)', {
type: [String]
})
--externals foo
# options: { externals: ['foo'] }
--externals foo --externals bar
# options: { externals: ['foo', 'bar'] }
Actual
--externals foo
# options: { externals: 'foo' }
--externals foo --externals bar
# options: { externals: ['foo', 'bar'] }
Re: #24
Solution
Add a type
option to cli.option
and command.option
methods.
egoist commented
Landed in 6.4.0