cli_flags/switch_globals.rb
tests/_examples/cli_flags/switch_globals.rb in the metorex repository.
# Under `-s`, each switch written among the program's own arguments binds a
# global of the same name, with the dashes in it turned into underscores.
p $flag
p $name
p $_long__name
p ARGV