ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Allowing antlibs to contribute diagnostics & version info
Date Tue, 26 Aug 2008 16:17:35 GMT

--- Jeffrey E Care <carej@us.ibm.com> wrote:

> Tony Sweeney <tony.sweeney@springsource.com> wrote
> on 08/26/2008 11:24:47 
> AM:
> 
> > Why not use '-V' for version, and '-v' for verbose
> (or vice versa)? 
> > Perl and Python both do this (opposite ways round,
> as it happens). 
> > Ruby uses '-v' for both (see man page); make and
> cc use '-v' for 
> > version, awk and grep use '-V'; there's no
> existing 'standard', so 
> > it's just a question of which way round.  If we're
> voting, my +1 would 
> > be for '-V' -> version.
> 
> Ant already uses "-v" for verbose logging and
> "-version" to show it's own 
> version information.
> 
> Gilles proposed that combining "-v" and "-version"
> (i.e. "verbose 
> version") should trigger showing the Antlib version
> information in 
> addition to Ant's version. I thought that was a
> great idea, but having 
> started working on this feature I've found that it's
> not feasible to 
> combine these two switches without a major rewrite
> of the command line 
> argument handling logic.
> 
> I think using "-V" for the Antlib version switch
> would be terribly 
> confusing, especially that "-v" means verbose, not
> version. I'm flexible 
> on the name, but I think that the option to show
> Antlib version info 
> should have it's own switch.

I haven't looked at the code in question, but I would
think the hardest part of this whole effort would be
providing the means for Ant to look up antlib version
info.  I'm actually fairly enthusiastic about using
the combination of existing arguments, mostly just
because of the number of requests I've seen for the
proliferation of arguments to Ant.  Surely one of the
existing committers could hook that up if you don't
want to tackle that part, Jeff... again, the rest is
the tricky part IMHO!

-Matt



      

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message