From f7013d17388a2d7ddd7ed5fdcc820be238299834 Mon Sep 17 00:00:00 2001 From: Gautham Goli Date: Wed, 24 Oct 2018 01:17:38 +0530 Subject: [PATCH] man: Restore args after generating man pages from respective cmd parsers --- Library/Homebrew/dev-cmd/man.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/dev-cmd/man.rb b/Library/Homebrew/dev-cmd/man.rb index 45e514de5f..73f8a713b1 100644 --- a/Library/Homebrew/dev-cmd/man.rb +++ b/Library/Homebrew/dev-cmd/man.rb @@ -189,6 +189,7 @@ module Homebrew def generate_cmd_manpages(glob) cmd_paths = Pathname.glob(glob).sort man_page_lines = [] + man_args = Homebrew.args cmd_paths.each do |cmd_path| begin cmd_parser = Homebrew.send(cmd_arg_parser(cmd_path)) @@ -197,6 +198,7 @@ module Homebrew man_page_lines << path_glob_commands(cmd_path.to_s).first end end + Homebrew.args = man_args man_page_lines end