method

get_one_optional_argument

ruby latest stable - Class: Gem::Command
get_one_optional_argument()
public

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.