Switch
that takes no arguments.
Class Methods
lib/optparse.rb
View on GitHub
# File tmp/rubies/ruby-3.0.5/lib/optparse.rb, line 684
def self.incompatible_argument_styles(*)
end
No documentation available
::
lib/optparse.rb
View on GitHub
# File tmp/rubies/ruby-3.0.5/lib/optparse.rb, line 687
def self.pattern
Object
end
No documentation available
Instance Methods
lib/optparse.rb
View on GitHub
# File tmp/rubies/ruby-3.0.5/lib/optparse.rb, line 679
def parse(arg, argv)
yield(NeedlessArgument, arg) if arg
conv_arg(arg)
end
Raises an exception if any arguments given.