Class: Thor

Inherits:
Object
  • Object
show all
Defined in:
lib/pact_broker/client/cli/thor_unknown_options_monkey_patch.rb

Overview

Monkey patch Thor so we can print out a warning when there are unknown options, rather than raising an error. If PACT_BROKER_ERROR_ON_UNKNOWN_OPTION=true, raise the error, as the user will have opted in to this behaviour. This is for backwards compatibility reasons, and in the next major version, the flag will be removed.

Direct Known Subclasses

PactBroker::Client::CLI::CustomThor

Defined Under Namespace

Classes: Options