23 lines
390 B
Ruby
Raw Normal View History

2023-08-08 13:54:59 -07:00
# typed: strict
2022-09-11 22:10:37 -05:00
# frozen_string_literal: true
require "cli/parser"
module Homebrew
module_function
sig { returns(CLI::Parser) }
def docs_args
Homebrew::CLI::Parser.new do
description <<~EOS
Open Homebrew's online documentation at <#{HOMEBREW_DOCS_WWW}> in a browser.
2022-09-11 22:10:37 -05:00
EOS
end
end
sig { void }
def docs
exec_browser HOMEBREW_DOCS_WWW
end
end