Sha256: e6c60cf44b30c1e78671d255b7fad85e76dce929eb0aae2cdf2ebbcfa3394ed4

Contents?: true

Size: 754 Bytes

Versions: 5

Compression:

Stored size: 754 Bytes

Contents

#!/usr/bin/env ruby

require '#{package_name}'

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

# TODO: replace the following with the body of your program
puts "\#{__FILE__} was executed with \#{ARGV.inspect} arguments"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
inochi-4.0.1 lib/inochi/templates/command.rbs
inochi-4.0.0 lib/inochi/templates/command.rbs
inochi-3.0.0 lib/inochi/templates/command.rbs
inochi-2.0.1 lib/inochi/templates/command.rbs
inochi-2.0.0 lib/inochi/templates/command.rbs