Skip to content

Commit

Permalink
fix: pact-broker --help command failed with Could not find command "_…
Browse files Browse the repository at this point in the history
…_broker_base_url" (#135)
  • Loading branch information
YOU54F authored Jun 8, 2023
1 parent bd7256e commit 7edfd58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/client/cli/custom_thor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7edfd58

Please sign in to comment.