25 lines
453 B
Ruby
Raw Normal View History

2024-03-29 18:31:39 -07:00
# typed: strong
# frozen_string_literal: true
2024-03-29 18:31:39 -07:00
require "abstract_command"
require "help"
2016-09-07 20:09:29 +01:00
module Homebrew
2024-03-29 18:31:39 -07:00
module Cmd
class HelpCmd < AbstractCommand
cmd_args do
description <<~EOS
Outputs the usage instructions for `brew` <command>.
Equivalent to `brew --help` <command>.
EOS
named_args [:command]
end
2024-03-29 18:31:39 -07:00
sig { override.void }
def run
Help.help
end
end
end
end