[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: cmd line stuff (was: CVS update: ...)

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2000-10-18 22:17:57 CEST

> But seriously, I think we should (eventually if not immediately)
> support the more flexible GNU way, because it does result in
> increased convenience for the user, and is no more ambiguous than
> the other way.

Well, there are some implementation issues:

        * gnu getopt supports the more flexible way, but apr_getopt()
          does not (and the BSD implementation does not). I don't
          know how the APR people would feel about making apr_getopt()
          more flexible. apr_getopt_long() needs to be consistent
          with apr_getopt().

          Of course, this point is moot if we use autoopt. I'm not
          quite sure where that decision lies; Bruce Korb and company
          seem very gung-ho about it, but several of the people who have
          previously done work on Subversion expressed reservations
          about bringing in a separate external tool for such a small
          problem. If we do use autoopt, then we can only support the
          more flexible approach if autoopt does.

        * Calling the getopt function multiple times is a no-no
          because it means failing to honor "--" (by itself) as the
          once-and-for-all-time option ender. Even gnu getopt won't
          look for options after a "--".
Received on Sat Oct 21 14:36:11 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.