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