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