25 lines
402 B
Ruby
Raw Normal View History

2022-09-11 22:10:37 -05:00
# typed: true
# frozen_string_literal: true
require "cli/parser"
module Homebrew
extend T::Sig
module_function
sig { returns(CLI::Parser) }
def docs_args
Homebrew::CLI::Parser.new do
description <<~EOS
2022-09-12 14:12:50 +01:00
Open Homebrew's online documentation (https://docs.brew.sh) 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