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

Gem::Command#get_one_optional_argument

get_one_optional_argument

Get a single optional argument from the command line. If more than one argument is given, return only the first. Return nil if none are given.