rails / thor

Thor is a toolkit for building powerful command-line interfaces.
http://whatisthor.com/
MIT License
5.12k stars 553 forks source link

Allow Option to be repeatable #674

Closed dturn closed 5 years ago

dturn commented 5 years ago

This PR pickups where https://github.com/erikhuda/thor/pull/468#issuecomment-279286148 left off. It adds a new option to Option: :repeatable. This allows a flag to be repeated and the results collected into an array. The one exceptions is for type Hash, where I merge the hashes into a a single hash. If we'd prefer an array of hashes, I'll be happy to change the behavior.

I'm happy to write up some docs, though not sure where to do that.

I've read the contributing guidelines 🌈. cc: @rafaelfranca

dturn commented 5 years ago

👋 Its been a week, and I understand people are busy, but I'd appreciate an estimate on when someone will be able to review this pr.

rafaelfranca commented 5 years ago

Aha! This is great!