commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morten Wittrock" <>
Subject CLI beginner's question about the Ant example
Date Mon, 03 Jul 2006 15:01:25 GMT
Hello all

I've recently discovered Commons CLI, which is pretty much exactly
what I need. I do have one question about its use, though. My question
is about the Ant example on the "Usage scenarios" page:

The example shows very clearly how to set up the options offered by
Ant. However, I'm not quite sure how to access the remaining
arguments, i.e. the targets that follow the options in:

ant [options] [target [target2 [target3] ...]]

My best bet so far is the String[] getArgs() method of the CommandLine class:

"Retrieve any left-over non-recognized options and arguments" (quoted
from the Javadoc)

Is that the method I need or am I missing something?


Morten Wittrock

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

View raw message