mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Fix tests
This commit is contained in:
parent
d6a6742a4d
commit
d25956668d
@ -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
|
||||||
|
@ -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?
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user