You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by c....@web.de on 2004/10/10 22:32:56 UTC

[CLI] problem

Hi!
I wants to use CLI in my Application, but i have this Problem:
The user must specify a config-file via CommandLine. After this, a class analyse
this file and load for example the class "tar" or "winrar". these classes can
specify additional options for cli.
So at first, the only required argument is "config" (in which is the path to the
config stored), and after the analyse of the config additional (required)
arguments are set (by example, the class "winrar" sets the req. arguments
source, destination and compressionlevel).

So, here is the problem:
cli makes a exception, when i put some arguments at the commandline, which are
not set as argument ( these arguments will set after analyse of the config ).
how can i force cli to ignore these additional arguments, which aren't set.

PS: Sorry for my english, im a german :-)

Greetings
Chris

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


Re: [CLI] problem

Posted by Rob Oxspring <ro...@imapmail.org>.
Sorry for the delayed response,

Which version of CLI are you using?  Am fairly sure this should be easy in v1 
but not so sure about v2... would have to ponder some more.

Thanks,

Rob

c.menssen@web.de wrote:
> Hi!
> I wants to use CLI in my Application, but i have this Problem:
> The user must specify a config-file via CommandLine. After this, a class analyse
> this file and load for example the class "tar" or "winrar". these classes can
> specify additional options for cli.
> So at first, the only required argument is "config" (in which is the path to the
> config stored), and after the analyse of the config additional (required)
> arguments are set (by example, the class "winrar" sets the req. arguments
> source, destination and compressionlevel).
> 
> So, here is the problem:
> cli makes a exception, when i put some arguments at the commandline, which are
> not set as argument ( these arguments will set after analyse of the config ).
> how can i force cli to ignore these additional arguments, which aren't set.
> 
> PS: Sorry for my english, im a german :-)
> 
> Greetings
> Chris
> 
> ---------------------------------------------------------------------
> 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