diff options
author | Daniel DeLeo <dan@opscode.com> | 2011-04-26 10:45:34 -0700 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2011-04-26 10:45:34 -0700 |
commit | 5d51957818ad570ea83fe102eaeb5e299191ac51 (patch) | |
tree | fcb23f51c44c1653e1e40cfd13a4df6090da0778 | |
parent | 5d0b9d67f1fadae7a4197387c4ff3ec8cd108a02 (diff) | |
download | chef-5d51957818ad570ea83fe102eaeb5e299191ac51.tar.gz |
[CHEF-2218] add chef_environment command line option
-rw-r--r-- | chef/lib/chef/application/client.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chef/lib/chef/application/client.rb b/chef/lib/chef/application/client.rb index 324efb2fbd..8a2d28b2f6 100644 --- a/chef/lib/chef/application/client.rb +++ b/chef/lib/chef/application/client.rb @@ -128,6 +128,11 @@ class Chef::Application::Client < Chef::Application :description => "Set the client key file location", :proc => nil + option :chef_environment, + :short => '-E ENVIRONMENT', + :long => '--environment ENVIRONMENT', + :description => 'Set the Chef Environment on the node' + option :version, :short => "-v", :long => "--version", |