Skip to content

Commit

Permalink
Merge pull request #292 from sethvargo/stfu
Browse files Browse the repository at this point in the history
Support --quiet option
  • Loading branch information
reset committed Jan 16, 2013
2 parents 3180a79 + b378802 commit cf68305
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/berkshelf/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit cf68305

Please sign in to comment.