Re: [xslt] hide "--debug" option when it's disabled



On Thu, Sep 18, 2003 at 11:37:46AM +0200, Le grande pinguin wrote:
> On Thu, Sep 18, 2003 at 05:30:55AM -0400, Daniel Veillard wrote:
> > On Thu, Sep 18, 2003 at 01:12:52PM +0400, Alexey Efimov wrote:
> > > Hello,
> > > 
> > > To avoid such situation:
> > > 
> > > >/onyma/xml/bin/xsltproc --debug b.xsl b.xsl
> > > Unknown option --debug
> > [..]
> > > I offer following small patch against libxslt-1.0.33:
> > 
> >   Sure, that makes sense, applied, commited in CVS,
> 
> Sorry for being late, but may i object? I think this might be 
> very confusing for users working on different installations.
> I personally _hate_ it when a program i know and use daily 
> all of a sudden has different comandline switches on another
> box. I think the proper way to fix this is to emit a warning 
> in the 'usage' message or abort the program with an error 
> message when used with '--debug'.

  Sigh ... check before objecting, you just misunderstood what
the patch does !!!

paphio:~/XSLT -> xsltproc --dbug
Unknown option --dbug
Usage: xsltproc [options] stylesheet file [file ...]

daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]