Fix tests

This commit is contained in:
Douglas Eichelberger 2024-03-29 19:12:25 -07:00
parent d6a6742a4d
commit d25956668d
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,8 @@ require "help"
module Homebrew module Homebrew
module Cmd module Cmd
class HelpCmd < AbstractCommand class HelpCmd < AbstractCommand
cmd_args { description "Print help information." }
sig { override.void } sig { override.void }
def run def run
Help.help Help.help

View File

@ -177,7 +177,10 @@ module Commands
external_commands_file.atomic_write("#{external_commands.sort.join("\n")}\n") external_commands_file.atomic_write("#{external_commands.sort.join("\n")}\n")
end end
sig { params(command: String).returns(T.nilable(T::Array[[String, String]])) }
def self.command_options(command) def self.command_options(command)
return if command == "help"
path = self.path(command) path = self.path(command)
return if path.blank? return if path.blank?