brew/Library/Homebrew/cmd/postinstall.rb
EricFromCanada 329c6c78be manpages: relocate some sections
Reorder switches as force/quiet/verbose/debug, --installed before --all, and link to SPECIFYING FORMULAE from top of page.
2019-08-20 08:58:20 -04:00

33 lines
581 B
Ruby

# frozen_string_literal: true
require "sandbox"
require "formula_installer"
require "cli/parser"
module Homebrew
module_function
def postinstall_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`postinstall` <formula>
Rerun the post-install steps for <formula>.
EOS
switch :force
switch :verbose
switch :debug
end
end
def postinstall
postinstall_args.parse
ARGV.resolved_formulae.each do |f|
ohai "Postinstalling #{f}"
fi = FormulaInstaller.new(f)
fi.post_install
end
end
end