summaryrefslogtreecommitdiff
path: root/lib/chef/application/client.rb
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2016-06-21 16:04:01 -0700
committerNoah Kantrowitz <noah@coderanger.net>2016-06-21 16:07:59 -0700
commit267cd39a17454a17cce7eeef8aea292aec4647fc (patch)
tree10aa44ef2572c5e4786992314be1dc55b52becc7 /lib/chef/application/client.rb
parent8693be1d64b06b93fb357ac96588b17a6ea64579 (diff)
downloadchef-267cd39a17454a17cce7eeef8aea292aec4647fc.tar.gz
First pass on --config-option handling.
Diffstat (limited to 'lib/chef/application/client.rb')
-rw-r--r--lib/chef/application/client.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb
index 77c86ad559..cec47ac071 100644
--- a/lib/chef/application/client.rb
+++ b/lib/chef/application/client.rb
@@ -40,6 +40,14 @@ class Chef::Application::Client < Chef::Application
:long => "--config CONFIG",
:description => "The configuration file to use"
+ option :config_option,
+ :long => "--config-option OPTION=VALUE",
+ :description => "Override a single configuration option",
+ :proc => lambda { |option, existing|
+ (existing ||= []) << option
+ existing
+ }
+
option :formatter,
:short => "-F FORMATTER",
:long => "--format FORMATTER",