lib/rocktumbler/option.rb in rocktumbler-0.1.3 vs lib/rocktumbler/option.rb in rocktumbler-0.2.0
- old
+ new
@@ -11,10 +11,11 @@
# We set default values here.
options = OpenStruct.new
options.gem_info = false
options.gem_homepage = false
options.skip_write = false
+ options.verbose = false
opt_parser = OptionParser.new do |opts|
opts.banner = "Usage: tumble [options]"
opts.separator ""
@@ -28,9 +29,13 @@
options.gem_homepage = true
end
opts.on("-s", "--skip-write", "Skip writing of Gemfile") do |docs|
options.skip_write = true
+ end
+
+ opts.on("-l", "--verbose", "Display formatted output to STDOUT") do |docs|
+ options.verbose = true
end
opts.separator ""
opts.separator "Common options:"