Sha256: 2e37b7f0f89845928c365810bdcdb605329f16e9b25415c25a6ac6acb9446814
Contents?: true
Size: 1.67 KB
Versions: 2
Compression:
Stored size: 1.67 KB
Contents
#!/usr/bin/env ruby $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) help = <<HELP Visage is a simple utility to convert .cdr and .dvdmedia files into .iso files. Visage is dependent on the OS X hdiutil command. USAGE: ./visage.rb [options] [path_to_dir] OPTIONS: -s -S -source 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. -d -D -destination Specifies the directory into which Visage will deposit the generates iso(s). If not specifies Visage will use the current working directory. -h -H -help Displays help information/examples HELP require 'rubygems' require 'optiflag' require 'visage' ##################################################### # Setup Command Line Options # ##################################################### module VisageOptions extend OptiFlagSet optional_flag "source" do alternate_forms "s", "S" default '.' end optional_flag "destination" do alternate_forms "d", "D" default '.' end optional_switch_flag "help" do alternate_forms "h", "H" end optional_switch_flag "version" do alternate_forms "v", "V" end and_process! end ##################################################### # Run # ##################################################### if( ARGV.flags.help? ) puts help elsif( ARGV.flags.version? ) puts Visage.version else converter = Visage::Converter.new( ARGV.flags.source, ARGV.flags.destination ) converter.process end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nerdEd-visage-0.2.1 | bin/visage |
nerdEd-visage-0.2.2 | bin/visage |