pact-foundation / pact_broker-client

A Ruby and CLI client for the Pact Broker. Publish and retrieve pacts and verification results.
MIT License
69 stars 45 forks source link

feat: print warnings and allow error to be raised when unknown option is used #147

Closed bethesque closed 11 months ago

bethesque commented 11 months ago

PACT-1370

bethesque commented 11 months ago

Old behaviour with unknown option --foo

Screenshot 2023-10-13 at 8 11 34 pm

New behaviour with unknown option --foo

Screenshot 2023-10-13 at 8 09 49 pm

New behaviour with unknown option --foo and PACT_BROKER_ERROR_ON_UNKNOWN_OPTION=true

Screenshot 2023-10-13 at 8 10 22 pm