name

fun name(option: Option): String

Get a name for an option that can be useful as a key for a value source.

The returned value is the longest option name with its prefix removed

Examples

name(option("-h", "--help")) == "help"
name(option("/INPUT")) == "INPUT"
name(option("--new-name", "--name")) == "new-name