Support --quiet option #292

Merged
merged 1 commit into from Jan 16, 2013
Jump to file
+9 −0
Split
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,