summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-10-27 21:37:01 -0700
committerGitHub <noreply@github.com>2019-10-27 21:37:01 -0700
commit5cf8be51a26e89a07aa962db4b35f319b23c6fe7 (patch)
tree622f21cb62fb02295797c5d8e9df6e8fc40a4d9b /lib
parent340ceac008bee94c053fd791175534a0b2a87ec2 (diff)
parentef2fbf960564d094e8c310dc3991d3fb477ddf30 (diff)
downloadchef-5cf8be51a26e89a07aa962db4b35f319b23c6fe7.tar.gz
Merge pull request #9026 from MsysTechnologiesllc/VSingh/format-option-with-better-message
Validate format option values using `in` attribute
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/application/knife.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/application/knife.rb b/lib/chef/application/knife.rb
index 6f192a3e1f..10634176c4 100644
--- a/lib/chef/application/knife.rb
+++ b/lib/chef/application/knife.rb
@@ -114,6 +114,7 @@ class Chef::Application::Knife < Chef::Application
short: "-F FORMAT",
long: "--format FORMAT",
description: "Which format to use for output.",
+ in: %w{summary text json yaml pp},
default: "summary"
option :local_mode,