Permalink
Browse files

Merge pull request #292 from sethvargo/stfu

Support --quiet option
  • Loading branch information...
2 parents 3180a79 + b378802 commit cf68305bc8ce7873412e9951739d1cc08d3a40bf @reset reset committed Jan 16, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/berkshelf/cli.rb
View
@@ -22,6 +22,10 @@ def initialize(*args)
Berkshelf::Config.path = @options[:config]
end
+ if @options[:quiet]
+ Berkshelf.ui.mute!
+ end
+
Berkshelf.set_format @options[:format]
@options = options.dup # unfreeze frozen options Hash from Thor
end
@@ -46,6 +50,11 @@ def initialize(*args)
desc: "Output format to use.",
aliases: "-F",
banner: "FORMAT"
+ class_option :quiet,
+ type: :boolean,
+ desc: "Silence all informational output.",
+ aliases: "-q",
+ default: false
method_option :force,
type: :boolean,

0 comments on commit cf68305

Please sign in to comment.