Sha256: 75e9d10e6036f93e9b7f65317701f03a1d5273e8b5542c03f1b41a62a7947eb9

Contents?: true

Size: 326 Bytes

Versions: 10

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

module EacCli
  class DocoptRunner
    DOCOPT_ERROR_EXIT_CODE = 0xC0

    class << self
      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

10 entries across 10 versions & 3 rubygems

Version Path
eac_cli-0.20.0 lib/eac_cli/docopt_runner/_class_methods.rb
avm-tools-0.102.0 vendor/eac_cli/lib/eac_cli/docopt_runner/_class_methods.rb
eac_cli-0.19.0 lib/eac_cli/docopt_runner/_class_methods.rb
avm-tools-0.101.0 vendor/eac_cli/lib/eac_cli/docopt_runner/_class_methods.rb
eac_cli-0.18.0 lib/eac_cli/docopt_runner/_class_methods.rb
avm-tools-0.100.0 vendor/eac_cli/lib/eac_cli/docopt_runner/_class_methods.rb
ehbrs-tools-0.21.0 vendor/eac_cli/lib/eac_cli/docopt_runner/_class_methods.rb
avm-tools-0.99.1 vendor/eac_cli/lib/eac_cli/docopt_runner/_class_methods.rb
eac_cli-0.17.0 lib/eac_cli/docopt_runner/_class_methods.rb
avm-tools-0.99.0 vendor/eac_cli/lib/eac_cli/docopt_runner/_class_methods.rb