admin@glassfish.java.net

Re: Action items for Kedar from today's

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Wed, 20 Aug 2008 17:14:55 -0700

Jane Young wrote:
> Hi Kedar et al,
>
>
> >In v3, can I say "asadmin --target foo list"? That is, can all the
> >common arguments that really apply to asadmin itself rather than the
> >subcommands be specified *before* the subcommand?
>
> This is *not* CLIP compliant. Please see:
> http://www.opensolaris.org/os/community/arc/caselog/1999/645/spec-html/

Stupid CLIP. :-(

> Also, there is ambiguity if options are specified *before* the subcommand.
> Consider the example:
>
> "asadmin --option-name foo bar" What if --option-name is a boolean
> option. So is foo treated as an option value to option-name or is it
> treated as a subcommand? Note that boolean option does not require a
> option value.

Having options with optional values is ambiguous. It doesn't matter if
the options come before or after the subcommand. Does CLIP really
allow that?