Module: Sevgi::Binaries::Igsev
Overview
Implements the igsev executable that derenders SVG and executes the generated Sevgi DSL.
Constant Summary collapse
- PROGNAME =
Executable name used in help output.
"igsev"- Error =
Error raised for invalid command-line usage.
Class.new(::Sevgi::Error)
Instance Method Summary collapse
-
#call(argv) ⇒ nil
Runs the
igsevcommand-line interface.
Instance Method Details
#call(argv) ⇒ nil
Runs the igsev command-line interface.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/sevgi/binaries/igsev.rb', line 61 def call(argv) return puts(help) if ( = Options.parse(argv = Array(argv))).help return puts(::Sevgi::VERSION) if .version result = run(file = argv.shift, ) if result.error? raise result.error if .vomit || ENV[ENVVOMIT] die(result.error, file) else result.recent.Out() end rescue Binaries::Igsev::Error => e abort(e.) end |