<commit_before>#:  * `postinstall` <formula>:
#:    Rerun the post-install steps for <formula>.

require "sandbox"
require "formula_installer"

module Homebrew
  module_function

  def postinstall
    ARGV.resolved_formulae.each do |f|
      ohai "Postinstalling #{f}"
      fi = FormulaInstaller.new(f)
      fi.post_install
    end
  end
end<commit_msg>postinstall: Use CLI::Parser to parse args<commit_after>#:  * `postinstall` <formula>:
#:    Rerun the post-install steps for <formula>.

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 :verbose
      switch :force
      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
{'fraction_non_alphanumeric': 0.09117082533589252, 'fraction_numerical': 0.0, 'mean_word_length': 3.0901960784313727, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7131174', 'n_tokens_mistral': 358, 'n_tokens_neox': 335, 'n_words': 90}