commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John O'Sullivan" <john.o.sulli...@ericsson.com>
Subject RE: Common CLi Usage
Date Thu, 29 May 2008 21:01:47 GMT
Hi,
Feel free to poke your nose in anytime ;>

Thanks, thats an idea I will try for the "space problem"..

The Other problem is I dont have the correct syntax for the folowing
line which defines teh option.Do you know the correct java syntax for
this which provides the functionality I require

final Option persistDataOption =
OptionBuilder.withArgName("persist").hasOptionalArgs(3)
 hasArg().withDescription("Persist Data with Scheduling")
.create("-p");

This is not correct?

jhon

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: 29 May 2008 21:55
To: Commons Users List
Subject: Re: Common CLi Usage

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John,

John O'Sullivan wrote:
| If I can change the date/time format to a format where it is only one 
| string what will be java syntax for definign the option within my 
| application

Sorry to poke my nose into what looks like a rather long-running
discussion, but it occurs to me that calling your program from the
command-line with quotes around the entire timestamp (both date and
time) would make the entire parameter appear as one -- with or without
the space. Something like:

| myApp -p [<name> | <Time> | <Boolean>] -a XXX -d xxx -f XXX

myApp -p '2008-05-29 16:54:25'

Does that help you with your "space" problem?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkg/GDMACgkQ9CaO5/Lv0PAtuwCeKz11MAM2KultB/c8664q1Mwm
rzYAoLQrQs60OzKEP4MFAIOI+bUlGEIl
=8QoN
-----END PGP SIGNATURE-----

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


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


Mime
View raw message