aux/picky/cli.rb in picky-3.4.3 vs aux/picky/cli.rb in picky-3.5.0
- old
+ new
@@ -12,10 +12,10 @@
executor_class, *params = executor_class_for selector
executor = executor_class.new
executor.execute selector, args, params
end
def executor_class_for selector = nil
- selector && @@mapping[selector.to_sym] || [Help]
+ selector && @@mapping[selector.intern] || [Help]
end
class Base
def usage name, params
puts "Usage:\n picky #{name} #{params_to_s(params)}"
\ No newline at end of file