Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. 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.