summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-28 10:33:20 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-28 10:33:20 -0700
commit7e976aaa84a3423abaea8b02c3168c5063735a33 (patch)
treead1680616598f2396e1922b51bcfc79a9ffa19ce /lib
parentd81f780663bd43f7c565f357094aea87f86262cc (diff)
downloadmixlib-cli-7e976aaa84a3423abaea8b02c3168c5063735a33.tar.gz
Fix minor typosspelling
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/mixlib/cli.rb4
-rw-r--r--lib/mixlib/cli/formatter.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/mixlib/cli.rb b/lib/mixlib/cli.rb
index b8f5748..30efbd3 100644
--- a/lib/mixlib/cli.rb
+++ b/lib/mixlib/cli.rb
@@ -140,7 +140,7 @@ module Mixlib
# and converts it to a value suitable for the new option.
# If not provided, the value provided to the deprecated option will be
# assigned directly to the converted option.
- # keep<Boolean> :: Defaults to true, this ensure sthat `options[:deprecated_flag]` is
+ # keep<Boolean> :: Defaults to true, this ensures that `options[:deprecated_flag]` is
# populated when the deprecated flag is used. If set to false,
# only the value in `replacement` will be set. Results undefined
# if no replacement is provided. You can use this to enforce the transition
@@ -194,7 +194,7 @@ module Mixlib
# === Returns
# @options<Hash>:: The current options hash.
def options=(val)
- raise(ArgumentError, "Options must recieve a hash") unless val.is_a?(Hash)
+ raise(ArgumentError, "Options must receive a hash") unless val.is_a?(Hash)
@options = val
end
diff --git a/lib/mixlib/cli/formatter.rb b/lib/mixlib/cli/formatter.rb
index 59f98a4..24a2de7 100644
--- a/lib/mixlib/cli/formatter.rb
+++ b/lib/mixlib/cli/formatter.rb
@@ -19,7 +19,7 @@ module Mixlib
usage
end
- # @param opt_arry [Array]
+ # @param opt_array [Array]
#
# @return [String] a friendly quoted list of items complete with "or"
def self.friendly_opt_list(opt_array)