diff options
author | danielsdeleo <dan@opscode.com> | 2012-11-13 13:19:04 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2012-11-20 20:00:26 -0800 |
commit | 41a1471ccda66947793e6597fa1f19d0a351e215 (patch) | |
tree | ec2ec7e614a687849a309b8e2868c1602b18e751 /lib/chef/application/solo.rb | |
parent | 832674e6254b287a9cd188d5a1756955bee45c6c (diff) | |
download | chef-41a1471ccda66947793e6597fa1f19d0a351e215.tar.gz |
Change default output to formatters when in console
Diffstat (limited to 'lib/chef/application/solo.rb')
-rw-r--r-- | lib/chef/application/solo.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/chef/application/solo.rb b/lib/chef/application/solo.rb index bcf072e2fb..f7c14ffcb9 100644 --- a/lib/chef/application/solo.rb +++ b/lib/chef/application/solo.rb @@ -37,13 +37,14 @@ class Chef::Application::Solo < Chef::Application option :formatter, :short => "-F FORMATTER", :long => "--format FORMATTER", - :description => "output format to use" + :description => "output format to use", + :proc => lambda { |format| Chef::Config.add_formatter(format) } option :color, :long => '--[no-]color', :boolean => true, - :default => false, - :description => "Use colored output, defaults to disabled" + :default => true, + :description => "Use colored output, defaults to enabled" option :log_level, :short => "-l LEVEL", |