id=$(GetCommandID "string")
Returns the identifier (name) of a command for a given input string.
Arguments | Return (print) |
---|---|
$1: the input string to test for a command identifier |
Success: long form of the command Error: empty string |
id=$(GetCommandID "string")