commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juozas Baliuka <>
Subject Re: CLI - auto-generated usage message anyone?
Date Tue, 29 Jan 2002 12:25:08 GMT
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.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:
>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?
>Do You Yahoo!?
>Great stuff seeking new owners in Yahoo! Auctions!
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message