dev@glassfish.java.net

CLI parameter/option aliases

From: Bill Shannon <bill.shannon_at_oracle.com>
Date: Mon, 21 Jun 2010 17:19:08 -0700

(Looks like I didn't send this out as widely as I thought,
so let's try again...)

I've implemented the ability to have an alias for a command parameter/option:

@Param(name = "foo", alias = "bar")

Note that the alias name does *not* appear in the usage message for
the command.

This is useful in cases where the parameter is being renamed in v3, but
we want to remain compatible with v2. The expectation is that the name
would be the v3 name and the alias would be the v2 name.