Support brew cleanup --quiet
I was looking for a way to suppress output in `brew cleanup` especially the `Warning: Skipping XXX: most recent version X.Y.Z not installed`. I noticed that `Homebrew::Cleanup#clean` takes a `quiet` argument, but `brew cleanup` doesn't pass one in. This PR updates `brew cleanup` to accept and forward along a `quiet` argument.
This commit is contained in:
parent
1b7f3a7f1d
commit
a5abea4fa2
@ -53,7 +53,7 @@ module Homebrew
|
||||
return
|
||||
end
|
||||
|
||||
cleanup.clean!
|
||||
cleanup.clean!(quiet: args.quiet?, periodic: false)
|
||||
|
||||
unless cleanup.disk_cleanup_size.zero?
|
||||
disk_space = disk_usage_readable(cleanup.disk_cleanup_size)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user