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.69.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
eac_ruby_utils-0.46.0 lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
avm-tools-0.69.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
eac_ruby_utils-0.45.2 lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
eac_ruby_utils-0.45.1 lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
eac_ruby_utils-0.45.0 lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
ehbrs-tools-0.13.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb