class Bundler::Thor

def method_at_least_one(*args, &block)


Then it is required either only one of "--one" or "--two".

end
end
option :two
option :one
at_least_one do
exclusive do

You can use at_least_one and exclusive at the same time.

will be raised.
If you do not give "--one" and "--two" AtLeastOneRequiredArgumentError

at_least_one :one, :two
option :two
option :one

Or

end
option :two
option :one
at_least_one do

==== Examples

options:: :for is applied for previous defined command.
Array[Bundler::Thor::Option.name]
==== Parameters

a previous defined command.
If :for is given as option, it allows you to change the options from

block of arguments. You can declare options as the outside of the block.
Adds and declares option group for required at least one of options in the
def method_at_least_one(*args, &block)
  register_options_relation_for(:method_options,
                                :method_at_least_one_option_names, *args, &block)
end