From 4babdf2a0f620a8886caeec32704fe3a0e9703a4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 13 Jan 2020 14:57:15 +0000 Subject: [PATCH] postinstall: use arguments from main command. --- Library/Homebrew/postinstall.rb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Library/Homebrew/postinstall.rb b/Library/Homebrew/postinstall.rb index 0eb610839d..d35e3b886c 100644 --- a/Library/Homebrew/postinstall.rb +++ b/Library/Homebrew/postinstall.rb @@ -7,17 +7,10 @@ require "debrew" require "fcntl" require "socket" require "cli/parser" - -def postinstall_args - Homebrew::CLI::Parser.new do - switch :force - switch :verbose - switch :debug - end -end +require "cmd/postinstall" begin - postinstall_args.parse + Homebrew.postinstall_args.parse error_pipe = UNIXSocket.open(ENV["HOMEBREW_ERROR_PIPE"], &:recv_io) error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)