Add Chef patent URL to --help

Fixes #5248

Signed-off-by: James Stocks <jstocks@chef.io>
This commit is contained in:
James Stocks 2020-09-18 10:19:24 +01:00
parent 38971c7122
commit 7576ad8ff5
2 changed files with 18 additions and 0 deletions

View file

@ -164,6 +164,12 @@ module Inspec
desc: "After normal execution order, results are sorted by control ID, or by file (default), or randomly. None uses legacy unsorted mode."
end
def self.help(*args)
super(*args)
puts "\nAbout #{Inspec::Dist::PRODUCT_NAME}:"
puts " Patents: chef.io/patents\n\n"
end
def self.format_platform_info(params: {}, indent: 0, color: 39)
str = ""
params.each do |item, info|

View file

@ -74,5 +74,17 @@ describe "command tests" do
end
end
end
it "has an About section" do
outputs.each do |output|
_(output).must_include("About Chef InSpec")
end
end
it "mentions Chef's patents" do
outputs.each do |output|
_(output).must_include("Patents: chef.io/patents")
end
end
end
end