diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mixlib/cli.rb | 4 | ||||
-rw-r--r-- | lib/mixlib/cli/formatter.rb | 2 |
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) |