diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2016-06-21 16:04:01 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2016-06-21 16:07:59 -0700 |
commit | 267cd39a17454a17cce7eeef8aea292aec4647fc (patch) | |
tree | 10aa44ef2572c5e4786992314be1dc55b52becc7 /lib/chef/application/client.rb | |
parent | 8693be1d64b06b93fb357ac96588b17a6ea64579 (diff) | |
download | chef-267cd39a17454a17cce7eeef8aea292aec4647fc.tar.gz |
First pass on --config-option handling.
Diffstat (limited to 'lib/chef/application/client.rb')
-rw-r--r-- | lib/chef/application/client.rb | 8 |
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", |