summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-09-09 11:43:07 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2020-09-09 11:43:07 +0530
commitf96673b21045a29fb09b9ed23a51e8aee3df139f (patch)
treec84ca08bdd605645729d27076c862914ef758b66
parent825165476eba6e5430c9db99cc5f680cab4a69dc (diff)
downloadchef-VSingh/fix-windows-test-cases.tar.gz
Add patent & docs links in knife help commandVSingh/fix-windows-test-cases
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r--lib/chef/application/knife.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/chef/application/knife.rb b/lib/chef/application/knife.rb
index 3d6563f43a..e8acb8ebcd 100644
--- a/lib/chef/application/knife.rb
+++ b/lib/chef/application/knife.rb
@@ -216,6 +216,15 @@ class Chef::Application::Knife < Chef::Application
rescue OptionParser::InvalidOption => e
puts "#{e}\n"
end
+
+ if want_help?
+ puts "#{Chef::Dist::PRODUCT}: #{Chef::VERSION}"
+ puts
+ puts "Docs: #{Chef::Dist::KNIFE_DOCS}"
+ puts "Patents: #{Chef::Dist::PATENTS}"
+ puts
+ end
+
puts opt_parser
puts
Chef::Knife.list_commands