diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 2fcb158d3c..2cf1f0684d 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1625,10 +1625,10 @@ class Formula end private :extract_macho_slice_from - def generate_completions(base_name = name, - shells = [:bash, :zsh, :fish], - binary = bin/base_name, - cmd = "completion", + def generate_completions(base_name: name, + shells: [:bash, :zsh, :fish], + binary: bin/base_name, + cmd: "completion", shell_as_flag: false) completion_script_path_map = { bash: bash_completion/base_name,