Sha256: 6d6579f8d6138b2f8630de5a19b5fc330b2799423bfb9e6546fc82b597a9af4a
Contents?: true
Size: 536 Bytes
Versions: 2
Compression:
Stored size: 536 Bytes
Contents
require "mvcli/app" require "rumm/version" require "rumm/exceptions" module Rumm class App < MVCLI::App self.root = Pathname(__FILE__).dirname def main(argv = ARGV.dup, input = $stdin, output = $stdout, log = $stderr, env = ENV.dup) super.tap do |code| # HACK: print out usage information if we can't the the command if code == MVCLI::Middleware::ExitStatus::EX_USAGE puts "\n" super(%w[help commands], input, output, log, env) rescue code end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rumm-0.1.0 | app.rb |
rumm-0.0.24 | app.rb |