31 lines
548 B
Ruby
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
|