Sha256: e9b5f7f451b3d569f776feac8d87c9ee832713206c02840770d328b8653b8116

Contents?: true

Size: 636 Bytes

Versions: 17

Compression:

Stored size: 636 Bytes

Contents

#!/usr/bin/env ruby

# Error codes are taken from /usr/include/sysexits.h

OriginalARGV = ARGV.dup

require 'opal/cli_options'
options = Opal::CLIOptions.new
begin
  options.parse!
rescue OptionParser::InvalidOption => e
  $stderr.puts "#{$0}: #{e.message} (-h will show valid options)"
  exit 64
end

require 'opal/cli'
options_hash = options.options
options_hash.merge!(
  file:     ARGF.file,
  filename: ARGF.filename,
  argv:     ARGV.dup
) unless options_hash[:lib_only]
cli = Opal::CLI.new options_hash

begin
  cli.run
  exit cli.exit_status || 0
rescue Opal::CliRunners::RunnerError => e
  $stderr.puts e.message
  exit 72
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
opal-1.7.0 exe/opal
opal-1.7.0.rc1 exe/opal
opal-1.6.1 exe/opal
opal-1.6.0 exe/opal
opal-1.6.0.rc1 exe/opal
opal-1.6.0.alpha1 exe/opal
opal-1.5.1 exe/opal
opal-1.5.0 exe/opal
opal-1.5.0.rc1 exe/opal
opal-1.4.1 exe/opal
opal-1.4.0 exe/opal
opal-1.4.0.alpha1 exe/opal
opal-1.3.2 exe/opal
opal-1.3.1 exe/opal
opal-1.3.0 exe/opal
opal-1.3.0.rc1 exe/opal
opal-1.3.0.alpha1 exe/opal