module InstaCLI::Silence
Suppress output
Public Instance Methods
execute(*args)
click to toggle source
# File lib/instacli/silence.rb, line 4 def execute(*args) return STDERR.puts help(*args[1..-1]) if %w(--help -h).include?(args.first) o, m, *rest = *args begin method(o, m).call(*rest) rescue *rescues STDERR.puts help(*args) end end