We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d294e6 commit 5d8ecb6Copy full SHA for 5d8ecb6
lib/bcu.rb
@@ -13,6 +13,10 @@ def self.parse(args)
13
opts.on("-a", "--all", "Force upgrade outdated apps including the ones marked as latest") do
14
options.all = true
15
end
16
+
17
+ opts.on("--dry-run", "Print outdated apps without upgrading them") do
18
+ options.dry_run = true
19
+ end
20
21
22
parser.parse!(args)
@@ -22,6 +26,8 @@ def self.parse(args)
26
def self.process(args)
23
27
options = parse(args)
24
28
Hbc.outdated(options.all).each do |app|
29
+ next if options.dry_run
30
25
31
puts "==> Upgrading #{app[:name]} to #{app[:latest]}"
32
33
# Clean up the cask metadata container.
0 commit comments