29 lines
562 B
Ruby
Raw Normal View History

require "keg"
2018-11-05 17:07:33 +05:30
require "cli_parser"
require "cleanup"
module Homebrew
2016-09-26 01:44:51 +02:00
module_function
2018-11-05 17:07:33 +05:30
def prune_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`prune` [<options>]
Deprecated. Use `brew cleanup` instead.
2018-11-05 17:07:33 +05:30
EOS
switch "-n", "--dry-run",
description: "Show what would be removed, but do not actually remove anything."
switch :verbose
switch :debug
hide_from_man_page!
2018-11-05 17:07:33 +05:30
end
end
def prune
2018-11-05 17:07:33 +05:30
prune_args.parse
odisabled("'brew prune'", "'brew cleanup --prune-prefix'")
end
end