commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anders Kofoed" <anders.kof...@avaleo.net>
Subject Out Of Office until 2nd January 2007
Date Sat, 30 Dec 2006 21:42:45 GMT
Thank you for your mail.
 
Avaleo office is closed from December 23 to January 2 were we will address you request.
If you have urgent requests it's possible to call the following persons:
 
- From December 23th to December 27th (both days included) please call Niels Dyrnesli on +45
40741496.
- From December 28th to January 1 (both days included) please call Anders Kofoed +4529442941
 
Kind regards
Anders Kofoed
Avaleo ApS


-----Original Message-----
Reply-To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
From: "Anders Kofoed" <anders.kofoed@avaleo.net>
To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
X-FuseMail-Forward: 1
Subject: Out Of Office until 2nd January 2007
Date: Sat, 30 Dec 2006 15:42:12 -0600

> Thank you for your mail.
>  
> Avaleo office is closed from December 23 to January 2 were we will address you request.
> If you have urgent requests it's possible to call the following persons:
>  
> - From December 23th to December 27th (both days included) please call Niels Dyrnesli
on +45 40741496.
> - From December 28th to January 1 (both days included) please call Anders Kofoed +4529442941
>  
> Kind regards
> Anders Kofoed
> Avaleo ApS


> -----Original Message-----
> Reply-To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
> Date: Sat, 30 Dec 2006 22:41:49 +0100
> From: Henryk Konsek <hak8@wp.pl>
> To:  commons-user@jakarta.apache.org
> Subject: [CLI] Option.setArgs and Option.setArgName issues

> > Hi.
> >     I was wondering about two scenarios. The first one:

> >  option.setArgs(2);
> >  option.setArgName( "argName" );

> > Which results in something like this when printing help:

> >  -myoption <argName>

> > I can't code something like:

> >  option.setArgs(2);
> >  option.setArgName( 1, "argName1" );
> >  option.setArgName( 2, "argName2" );

> > ...so I was wondering whether is there any way to achieve something like:

> >  -myoption <argName1> <argName2>



> > The second issue I can't figure out is how to enforce checking of amount 
> > of arguments for option. That is how to prevent situations in which user 
> > passes too much arguments for option (for instance for option with two 
> > arguments):

> > java -jar command.jar -myoption one two three

> > At this moment I can't even check it in the code after getOptionValues() 
> > due to the fact that additional arguments are simply ignored.


> > I would be grateful for any suggestions.

> > Greetings.

> > -- 
> > Henryk Konsek
> > http://hekonsek.blogspot.com


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


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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message