aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/cmd/help.rb5
-rw-r--r--Library/Homebrew/cmd/man.rb2
-rw-r--r--Library/Homebrew/cmd/tests.rb1
3 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/help.rb b/Library/Homebrew/cmd/help.rb
index 7cb414ca1..ac5fce5b7 100644
--- a/Library/Homebrew/cmd/help.rb
+++ b/Library/Homebrew/cmd/help.rb
@@ -91,8 +91,9 @@ module Homebrew
line.slice(2..-1).
sub(/^ \* /, "#{Tty.highlight}brew#{Tty.reset} ").
gsub(/`(.*?)`/, "#{Tty.highlight}\\1#{Tty.reset}").
- gsub(/<(.*?)>/, "#{Tty.em}\\1#{Tty.reset}")
- end.join
+ gsub(/<(.*?)>/, "#{Tty.em}\\1#{Tty.reset}").
+ gsub("@hide_from_man_page", "")
+ end.join.strip
end
end
end
diff --git a/Library/Homebrew/cmd/man.rb b/Library/Homebrew/cmd/man.rb
index e23313be3..d704d46a1 100644
--- a/Library/Homebrew/cmd/man.rb
+++ b/Library/Homebrew/cmd/man.rb
@@ -51,7 +51,7 @@ module Homebrew
map { |line| line.slice(2..-1) }.
join
}.
- reject { |s| s.strip.empty? }
+ reject { |s| s.strip.empty? || s.include?("@hide_from_man_page") }
variables[:maintainers] = (HOMEBREW_REPOSITORY/"README.md").
read[/Homebrew's current maintainers are (.*)\./, 1].
diff --git a/Library/Homebrew/cmd/tests.rb b/Library/Homebrew/cmd/tests.rb
index 58e90cec7..71cfcde18 100644
--- a/Library/Homebrew/cmd/tests.rb
+++ b/Library/Homebrew/cmd/tests.rb
@@ -1,3 +1,4 @@
+#: @hide_from_man_page
#: * `tests` [`-v`] [`--coverage`] [`--generic`] [`--no-compat`] [`--only=`<test_script/test_method>] [`--seed` <seed>] [`--trace`]:
#: Run Homebrew's unit and integration tests.