Sha256: ad2d655c54e5a459485a5fb110fa1e9fbf184203aefc6b731419b6db5eb7e49e

Contents?: true

Size: 406 Bytes

Versions: 87

Compression:

Stored size: 406 Bytes

Contents

# frozen_string_literal: true

module EacRubyUtils
  module Console
    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) # rubocop:disable Rails/Exit
        end
      end
    end
  end
end

Version data entries

87 entries across 87 versions & 3 rubygems

Version Path
avm-tools-0.76.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
eac_ruby_utils-0.49.1 lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.75.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.75.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.74.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
eac_ruby_utils-0.49.0 lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.74.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
eac_ruby_utils-0.48.0 lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.73.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.72.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
eac_ruby_utils-0.47.0 lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.71.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.70.2 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
ehbrs-tools-0.15.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
ehbrs-tools-0.14.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.70.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.70.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.69.3 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
ehbrs-tools-0.14.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.69.2 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb