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
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