2020-10-10 14:16:11 +02:00
|
|
|
# typed: false
|
2019-11-04 21:00:20 +11:00
|
|
|
# frozen_string_literal: true
|
2019-04-19 15:38:03 +09:00
|
|
|
|
2014-09-20 15:30:44 +01:00
|
|
|
module Homebrew
|
2020-10-20 12:03:48 +02:00
|
|
|
extend T::Sig
|
|
|
|
|
2016-09-26 01:44:51 +02:00
|
|
|
module_function
|
|
|
|
|
2020-10-20 12:03:48 +02:00
|
|
|
sig { returns(CLI::Parser) }
|
2018-07-30 18:25:38 +05:30
|
|
|
def man_args
|
|
|
|
Homebrew::CLI::Parser.new do
|
2021-01-15 15:04:02 -05:00
|
|
|
description <<~EOS
|
2018-09-28 21:39:52 +05:30
|
|
|
Generate Homebrew's manpages.
|
|
|
|
EOS
|
2021-02-23 02:45:01 +05:30
|
|
|
switch "--fail-if-not-changed",
|
|
|
|
description: "Return a failing status code if no changes are detected in the manpage outputs. "\
|
|
|
|
"This can be used to notify CI when the manpages are out of date. Additionally, "\
|
2019-04-30 08:44:35 +01:00
|
|
|
"the date used in new manpages will match those in the existing manpages (to allow "\
|
|
|
|
"comparison without factoring in the date)."
|
2021-01-10 14:26:40 -05:00
|
|
|
named_args :none
|
2019-01-30 21:33:30 +00:00
|
|
|
|
2021-05-03 20:42:35 +05:30
|
|
|
hide_from_man_page!
|
2018-10-02 14:44:38 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-05-03 20:42:35 +05:30
|
|
|
def man
|
2021-06-17 11:34:31 +01:00
|
|
|
odisabled "`brew man`", "`brew generate-man-completions`"
|
2018-10-02 14:44:38 +05:30
|
|
|
end
|
2014-09-20 15:30:44 +01:00
|
|
|
end
|