Fixed the formatting of inspec exec -h by not using long_desc.

long_desc does some really bad word wrapping stuff that totally breaks
our formatting of the output (like code blocks). So, don't use it. If
we like this, I will apply it to all of them.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-08-29 15:37:55 -07:00
parent d1ffce7278
commit 8b0f6efb41

View file

@ -208,9 +208,9 @@ class Inspec::InspecCLI < Inspec::BaseCLI
pretty_handle_exception(e) pretty_handle_exception(e)
end end
desc "exec LOCATIONS", "run all test files at the specified LOCATIONS." desc "exec LOCATIONS", <<~EOT
# TODO: find a way for Thor not to butcher the formatting of this Run all test files at the specified LOCATIONS.
long_desc <<~EOT
Loads the given profile(s) and fetches their dependencies if needed. Then Loads the given profile(s) and fetches their dependencies if needed. Then
connects to the target and executes any controls contained in the profiles. connects to the target and executes any controls contained in the profiles.
One or more reporters are used to generate output. One or more reporters are used to generate output.