Sha256: 5bc52a78674714b1000511f7c7cf4af839bc5b2575222f458167d006221ceeac
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
#!/usr/bin/env ruby $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) require 'rubygems' require 'optiflag' require 'visage' ##################################################### # Setup Command Line Options # ##################################################### module VisageOptions extend OptiFlagSet optional_flag "source" do alternate_forms "s", "S" description "Specifies the directory in which Visage will look for source files, or the filename of a specific source file. If not specified visage will assume the current working directory is its source." default '.' end optional_flag "destination" do alternate_forms "d", "D" description "Specifies the directory into which Visage will deposit the generates iso(s). If not specifies Visage will use the current working directory." default '.' end optional_switch_flag "version" do alternate_forms "v", "V" description "Returns version information." end and_process! end ##################################################### # Run # ##################################################### if( ARGV.flags.version? ) puts Visage.version else converter = Visage::Converter.new( ARGV.flags.source, ARGV.flags.destination ) converter.process end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nerdEd-visage-0.2.3 | bin/visage |