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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]