method

environment

environment(env = File.basename($0, '.*'))
public

Parses environment variable env or its uppercase with splitting like a shell.

env defaults to the basename of the program.