Sha256: 4a31440bef9f555b84f36615caf1db734a11448278aa4ec4a13553342a8d2452

Contents?: true

Size: 628 Bytes

Versions: 5

Compression:

Stored size: 628 Bytes

Contents

#!/usr/bin/env ruby

require 'inochi'

if ARGV.delete('-h') or ARGV.delete('--help')
  # try to display UNIX version of help manual
  man_path = File.join(Inochi::INSTDIR, 'man')
  unless system 'man', '-M', man_path, '-a', 'inochi'
    # 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 #{Inochi::WEBSITE}"
    end
  end
  exit
elsif ARGV.delete('-v') or ARGV.delete('--version')
  puts Inochi::VERSION
  exit
end

require 'inochi/engine'
Inochi::Engine.new.run

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
inochi-4.0.1 bin/inochi
inochi-4.0.0 bin/inochi
inochi-3.0.0 bin/inochi
inochi-2.0.1 bin/inochi
inochi-2.0.0 bin/inochi