brew/Library/Homebrew/cmd/switch.rb
2021-01-18 21:20:11 -05:00

31 lines
548 B
Ruby

# typed: true
# frozen_string_literal: true
require "formula"
require "keg"
require "cli/parser"
module Homebrew
extend T::Sig
module_function
sig { returns(CLI::Parser) }
def switch_args
Homebrew::CLI::Parser.new do
description <<~EOS
Symlink all of the specified <version> of <formula>'s installation into Homebrew's prefix.
EOS
named_args number: 2
hide_from_man_page!
end
end
def switch
switch_args.parse
odisabled "`brew switch`", "`brew link` @-versioned formulae"
end
end