Sha256: 5e35ce20ca1ef63a5c3e49d122c3e5bf8efc11214e599d5d96378592de089c1d
Contents?: true
Size: 967 Bytes
Versions: 3
Compression:
Stored size: 967 Bytes
Contents
#!/usr/bin/env ruby # # This is an interactive Ruby shell (IRB) for Rumai. # # # Usage: # # rumai [Options] [STUFF_FOR_IRB] # # STUFF_FOR_IRB : Arguments and options for `irb`. # # # Options: # # -h, --help : Show this message and exit. # # -v, --version : Show version number and exit. # require 'rumai' # parse command line if ARGV.delete('-h') or ARGV.delete('--help') # try to display UNIX version of help manual man_path = File.join(Rumai::INSTDIR, 'man') unless system 'man', '-M', man_path, '-a', 'rumai' # try to display HTML version of help manual man_html = man_path + '.html' unless %w[$BROWSER open start].any? {|b| system "#{b} #{man_html}" } # no luck; direct user to project website puts "See #{Rumai::WEBSITE}" end end exit elsif ARGV.delete('-v') or ARGV.delete('--version') puts Rumai::VERSION exit end # start IRB session require 'rumai/irb' require 'irb/completion' IRB.start_session Rumai
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rumai-3.3.0 | bin/rumai |
rumai-3.2.4 | bin/rumai |
rumai-3.2.3 | bin/rumai |