commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juozas Baliuka <bali...@mwm.lt>
Subject Re: CLI - auto-generated usage message anyone?
Date Tue, 29 Jan 2002 12:25:08 GMT
Hi,
I have suggestion for CLI. CLI does not interpret "cmd" and It is good.
But I think it can be useful to add some "CallBack" interface and use it in 
this way:

options.addPredefinedOptions( optionArrayOrSomeFilter );
options.addOption(myOption,myHandler);
..........................................................
options.parse( args);//invokes my handler, then finds option in cmd

it is possible to implement some samples or helpers or handlers for 
"standard" or predefined  options like "help"

At 02:10 AM 1/29/2002 -0800, you wrote:
>Hi,
>
>I was wondering what do you think if CLI were able (or
>maybe is already :-) ) to automatically generate some
>sort of "usage: ..." message - something you get when
>doing: "man -h".
>
>Also, does CLI support sub-groups of options, for
>example: [-c|-f|-k|-w|-tZT device] -> all being
>mutually exclusive?
>
>Cheers,
>Slawek
>
>__________________________________________________
>Do You Yahoo!?
>Great stuff seeking new owners in Yahoo! Auctions!
>http://auctions.yahoo.com
>
>--
>To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message