class Thor
def method_exclusive(*args, &block)
will be raised.
If you give "--one" and "--two" at the same time ExclusiveArgumentsError
exclusive :one, :two
option :two
option :one
Or
end
option :two
option :one
exclusive do
==== Examples
options
Array[Thor::Option.name]
==== Parameters
a previous defined command.
If :for is given as option, it allows you to change the options from
block and arguments. You can declare options as the outside of the block.
Adds and declares option group for exclusive options in the
def method_exclusive(*args, &block) register_options_relation_for(:method_options, :method_exclusive_option_names, *args, &block) end