summaryrefslogtreecommitdiff
path: root/lib/chef/application/solo.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2012-11-13 13:19:04 -0800
committerdanielsdeleo <dan@opscode.com>2012-11-20 20:00:26 -0800
commit41a1471ccda66947793e6597fa1f19d0a351e215 (patch)
treeec2ec7e614a687849a309b8e2868c1602b18e751 /lib/chef/application/solo.rb
parent832674e6254b287a9cd188d5a1756955bee45c6c (diff)
downloadchef-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.rb7
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",