Sha256: 5d782204868d8fb17f9b5fcd1bbd96668afeda587514097b1311c5df132b3188

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

#!/usr/bin/env ruby

require 'magellan/cli'

begin
  Magellan::Cli::Command.start(ARGV)
rescue Magellan::Cli::Error => e
  $stderr.puts("\e[31m#{e.message}\e[0m")
  exit(1)
rescue => e
  verbose = ARGV.include?("-V") || ARGV.include?("--verbose")
  msg = "\e[31m[#{e.class}] #{e.message}\e[0m"
  msg << "\n  " << e.backtrace.join("\n  ") if verbose
  $stderr.puts(msg)
  exit(1)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
magellan-cli-0.2.17 bin/magellan-cli
magellan-cli-0.2.16 bin/magellan-cli