sindresorhus / meow

🐈 CLI app helper
MIT License
3.54k stars 151 forks source link

Array<Objects> in options #158

Open Scrum opened 4 years ago

Scrum commented 4 years ago

I am using parameters like this:

 options: {
      type: 'string',
      isMultiple: true
    },

I can make arrays from features such as a string or a number

$ mycli --options.props=1 --options.props=1
options: { props: [ 1, 2 ] }

Tell me how to make an array of objects?

sindresorhus commented 4 years ago

Nested flags are not currently supported.