tryParse

open override fun tryParse(arg: String, previousValue: T?): T?

Attempts to parse a command-line argument if it matches one of this parameter's aliases. Checks if the argument starts with "-alias=" for any of the aliases.

Return

The parsed value, or null if the argument doesn't match any of this parameter's aliases

Parameters

arg

The command-line argument to parse

previousValue

The previously parsed value, if any