summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2019-05-13 14:03:05 -0400
committerBryan McLellan <btm@loftninjas.org>2019-05-13 14:03:05 -0400
commitd76f128d462840a707b0941ee468ab09abfc6f74 (patch)
tree8b2c93b709e6d199c98d575aa4ab11c6e240048f /lib
parent5f0e3706dfc00c5175669720e04c4bff38a7d96f (diff)
downloadmixlib-cli-d76f128d462840a707b0941ee468ab09abfc6f74.tar.gz
Improve the --help text output of 'in:'btm/included_text
The automatic addition of the 'in' options to the --help output could be more clear about what the list is. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/mixlib/cli.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/cli.rb b/lib/mixlib/cli.rb
index 0516926..cfc642d 100644
--- a/lib/mixlib/cli.rb
+++ b/lib/mixlib/cli.rb
@@ -313,7 +313,7 @@ module Mixlib
if opt_setting.key?(:description)
description = opt_setting[:description].dup
description << " (required)" if opt_setting[:required]
- description << " (included in ['#{opt_setting[:in].join("', '")}'])" if opt_setting[:in]
+ description << " (valid options are: ['#{opt_setting[:in].join("', '")}'])" if opt_setting[:in]
opt_setting[:description] = description
arguments << description
end