Sha256: 35872a7b5f6d843494afb50495dfb1306489e684fff90f813ef6ae45e2ff7040
Contents?: true
Size: 704 Bytes
Versions: 28
Compression:
Stored size: 704 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))) require 'rdf/cli' options = RDF::CLI.options do self.banner = "Usage: #{RDF::CLI.basename} [options] command [args...]" self.on('-d', '--debug', 'Enable debug output for troubleshooting.') do $DEBUG = true end self.on('-v', '--verbose', 'Enable verbose output. May be given more than once.') do $VERBOSE = true end self.on('-V', '--version', 'Display the RDF.rb version and exit.') do puts RDF::VERSION; exit end end abort options.banner if ARGV.empty? unless RDF::CLI.exec_command(command = ARGV.shift, *ARGV) abort "#{File.basename($0)}: unknown command `#{command}'" end
Version data entries
28 entries across 28 versions & 1 rubygems