rails / thor

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

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

Closed p8 closed 1 year ago

p8 commented 1 year 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