summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/mixlib/cli.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mixlib/cli.rb b/lib/mixlib/cli.rb
index 4141e4a..f3598e6 100644
--- a/lib/mixlib/cli.rb
+++ b/lib/mixlib/cli.rb
@@ -324,11 +324,11 @@ module Mixlib
# @private
# @param opt_arry [Array]
#
- # @return [String] a friendly quoted list of items complete with "and"
+ # @return [String] a friendly quoted list of items complete with "or"
def friendly_opt_list(opt_array)
opts = opt_array.map { |x| "'#{x}'" }
- return opts.join(" and ") if opts.size < 3
- opts[0..-2].join(", ") + " and " + opts[-1]
+ return opts.join(" or ") if opts.size < 3
+ opts[0..-2].join(", ") + ", or " + opts[-1]
end
def self.included(receiver)