commander-rb / commander

The complete solution for Ruby command-line executables
MIT License
822 stars 74 forks source link

Avoid deprecation warnings on load #63

Closed ggilder closed 6 years ago

ggilder commented 6 years ago

Related to #62 — here is a way we can avoid triggering deprecation warnings for most users as new constants become deprecated in future versions of Ruby. This patch defers scanning all constants until an ask_for_* method is actually called.

@mattbrictson @rous-gg @rlgomes please review if you're interested :)

mattbrictson commented 6 years ago

Great idea 👍