Sha256: 2e83e566e309b46b70c83192a5d9624348e3722253ba321187c9fe1fa554e492

Contents?: true

Size: 611 Bytes

Versions: 27

Compression:

Stored size: 611 Bytes

Contents

#!/usr/bin/env ruby

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

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

27 entries across 27 versions & 1 rubygems

Version Path
opal-1.2.0 exe/opal
opal-1.2.0.beta1 exe/opal
opal-1.1.1 exe/opal
opal-1.1.1.rc1 exe/opal
opal-1.1.0 exe/opal
opal-1.1.0.rc1 exe/opal
opal-1.0.5 exe/opal
opal-1.0.4 exe/opal
opal-1.0.3 exe/opal
opal-1.0.2 exe/opal
opal-1.0.1 exe/opal
opal-1.0.0 exe/opal
opal-1.0.0.beta1 exe/opal
opal-0.11.4 exe/opal
opal-0.11.3 exe/opal
opal-0.11.2 exe/opal
opal-0.11.1 exe/opal
opal-0.11.1.pre exe/opal
opal-0.10.6 bin/opal
opal-0.10.6.beta bin/opal