Closed dblock closed 3 years ago
The implementation of commands_from is https://github.com/davetron5000/gli/blob/84c21131320168178077e9bfe03f51f0e28d361e/lib/gli/app.rb#L319 and is a simple require. If you call it from a class, it will create global scope, not local to where it was called from.
commands_from
require
I'm not sure how to solve this w/out breaking backwards compat, but you are correct in how it behaves
The implementation of
commands_from
is https://github.com/davetron5000/gli/blob/84c21131320168178077e9bfe03f51f0e28d361e/lib/gli/app.rb#L319 and is a simplerequire
. If you call it from a class, it will create global scope, not local to where it was called from.