rails / thor

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

Validate arguments for `method_option` and `class_option` #856

Closed p8 closed 10 months ago

p8 commented 11 months ago

method_option and class_option require a String or Symbol as the first argument. This can be somewhat confusing when method_options and class_options require a Hash as argument.

Fixes #808