Module: Sevgi::Binaries::Sevgi
Overview
Implements the sevgi executable.
Constant Summary collapse
- PROGNAME =
Executable name used in help output.
"sevgi"- Error =
Error raised for invalid command-line usage.
Class.new(::Sevgi::Error)
Instance Method Summary collapse
-
#call(argv) ⇒ nil
Runs the
sevgicommand-line interface.
Instance Method Details
#call(argv) ⇒ nil
Runs the sevgi command-line interface.
61 62 63 64 65 66 67 68 69 70 |
# File 'lib/sevgi/binaries/sevgi.rb', line 61 def call(argv) return puts(help) if ( = Options.parse(argv = Array(argv))).help return puts(::Sevgi::VERSION) if .version file = argv.shift handle(run(file, ), file, ) rescue Binaries::Sevgi::Error => e abort(e.) end |