Sha256: 7c0078e9550533575f86aa4cade9bbefd43b21f92f23cf75760a50c7c17f442f

Contents?: true

Size: 354 Bytes

Versions: 6

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

require 'docopt'

module EacCli
  class DocoptRunner
    module ClassMethods
      DOCOPT_ERROR_EXIT_CODE = 0xC0

      def run(options = {})
        create(options).send(:run)
      rescue ::Docopt::Exit => e
        STDERR.write(e.message + "\n")
        ::Kernel.exit(DOCOPT_ERROR_EXIT_CODE)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
eac_cli-0.20.4 lib/eac_cli/docopt_runner/class_methods.rb
eac_cli-0.20.3 lib/eac_cli/docopt_runner/class_methods.rb
avm-tools-0.102.2 vendor/eac_cli/lib/eac_cli/docopt_runner/class_methods.rb
eac_cli-0.20.2 lib/eac_cli/docopt_runner/class_methods.rb
avm-tools-0.102.1 vendor/eac_cli/lib/eac_cli/docopt_runner/class_methods.rb
eac_cli-0.20.1 lib/eac_cli/docopt_runner/class_methods.rb