From 7edfd58c92fc234aa6aab647ef3b816a3553a412 Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Thu, 8 Jun 2023 02:45:35 +0100 Subject: [PATCH] fix: pact-broker --help command failed with Could not find command "__broker_base_url" (#135) --- lib/pact_broker/client/cli/custom_thor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact_broker/client/cli/custom_thor.rb b/lib/pact_broker/client/cli/custom_thor.rb index 3cd0429..76bdfbc 100644 --- a/lib/pact_broker/client/cli/custom_thor.rb +++ b/lib/pact_broker/client/cli/custom_thor.rb @@ -28,7 +28,7 @@ def self.massage_args argv end def self.add_broker_config_from_environment_variables argv - return argv if argv[0] == 'help' || argv.empty? + return argv if argv[0] == '--help' || argv[0] == 'help' || argv.empty? add_option_from_environment_variable(argv, 'broker-base-url', 'b', 'PACT_BROKER_BASE_URL') end