Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

GetoptLong#set_options

set_options(*arguments)

Set options. Takes the same argument as GetoptLong.new.

Raises a RuntimeError if option processing has already started.