lib/cri/command_dsl.rb in cri-2.9.1 vs lib/cri/command_dsl.rb in cri-2.10.0

- old
+ new

@@ -96,9 +96,17 @@ # @return [void] def be_hidden @command.hidden = true end + # Skips option parsing for the command. Allows option-like arguments to be + # passed in, avoiding the {Cri::OptionParser} validation. + # + # @return [void] + def skip_option_parsing + @command.all_opts_as_args = true + end + # Adds a new option to the command. If a block is given, it will be # executed when the option is successfully parsed. # # @param [String, Symbol, nil] short The short option name #