admin@glassfish.java.net

Re: --echo

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Tue, 11 Aug 2009 09:13:04 -0700

Jane Young wrote on 8/11/09 1:54 AM:
> cc'ing Sankar and Lidia.
> I know Lidia used the --echo option in v2.
> Please comment in how you'd like to see the output format of --echo option.
>
> Bill, more questions. Your proposal of the output format:
>
> $ asadmin --echo version
> asadmin program options: --host localhost --port 4848 --terse false
> --interactive true --secure false --echo false
> command: version --verbose false
>
> Does this also include the environment variables?

It was Kedar's proposal, but...

Currently --echo doesn't print environment variables, but it does take them
into account when printing out the effective options.

What would you *want* it to do?

> Also, is it possible to not print out "asadmin <generic options>" in
> multimode while in singlemode print out "asadmin <generico-option>" if
> --echo=true?

Hmmm... Well, it's only software, so it's always possible, but right
now there's no globally available notion of "in multimode". It could
be added, of course.