Mike McQuaid eed1444d61
Update deprecations and cleanup
- Move `odeprecated` to `odisabled`
- Remove `odisabled`
- Enable automatic cleanup on install/reinstall/upgrade.
2019-01-23 21:57:40 +00:00

31 lines
597 B
Ruby

#: * `prune` [`--dry-run`]:
#: Deprecated. Use `brew cleanup` instead.
require "keg"
require "cli_parser"
require "cleanup"
module Homebrew
module_function
def prune_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`prune` [<options>]
Deprecated. Use `brew cleanup` instead.
EOS
switch "-n", "--dry-run",
description: "Show what would be removed, but do not actually remove anything."
switch :verbose
switch :debug
end
end
def prune
prune_args.parse
odisabled("'brew prune'", "'brew cleanup'")
end
end