Hi John,

On Thursday, November 14, 2002, at 11:47 PM, John Keyes wrote:

3. Sets of options can be read from and written to properties files.
No support for this.  I have a TODO for myself (I must document it) to
have an XML reader and writer for configuring an Options instance.  I
will document this TODO and also add yours.  If you feel like having a
bash at the properties one that would be cool ;)
rereading your comment, I see that for XML, you're talking about configuring an options instance.

I didn't make myself very clear, but I was talking (as was David, I think) about taking an Options instance, and a Properties object, and producing a CommandLine object or equivalent, so it would be more like a Parser object, except that that interface wouldn't be quite suitable. The appropriate prototype would be more like:

public CommandLine parse(Options opts, Properties properties, boolean stopAtNonOption)

or maybe

public CommandLine parse(Options opts, Properties properties)

or even

public CommandLine parse(Options opts, Properties properties, Prefix prefix)

(where prefix is a prefix that gets stripped off the inbound properties, so that you can embed relevant properties in a general properties file without fear of naming collisions).

If that sounds useful, let me know, and I'll have a bash at it ...

Returning to my previous reply, it would also be useful (IMHO, naturally) to be able to take this CommandLine object, and over-ride its settings via an actual command line, but I can't see any way to do that gracefully in CLI ...


--
To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>



Reply via email to