Mike McQuaid 5c48226018
cmd/help: add description and arguments.
This allows an accurate manpage description of `brew help`.

Also commit the various other required changes to completions and
manpage.
2024-04-08 13:35:25 +01:00

25 lines
453 B
Ruby

# typed: strong
# frozen_string_literal: true
require "abstract_command"
require "help"
module Homebrew
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
sig { override.void }
def run
Help.help
end
end
end
end