popt-1.16: patch for building on NetBSD-current

2010-06-05 Thread Thomas Klausner
Hi! Since NetBSD-5.99.11, glob_pattern_p is included in libc. The attached patch fixes the resulting compilation problem. Please include it in the next release. Thanks, Thomas : patch-aa,v 1.8 2009/04/22 15:25:05 tnn Exp $ --- poptconfig.c.orig 2009-04-12 20:14:38.0 +0200 +++ poptcon

Re: popt-1.16: patch for building on NetBSD-current

2010-06-05 Thread Jeff Johnson
On Jun 5, 2010, at 9:29 AM, Thomas Klausner wrote: > Hi! > > Since NetBSD-5.99.11, glob_pattern_p is included in libc. > > The attached patch fixes the resulting compilation problem. Please > include it in the next release. > I'd rather see a HAVE_GLOB_PATTERN_P test in AutoFu, with all the b

Disallowing args

2010-06-05 Thread Wayne Davison
Here's something that was recently fixed for the popt that is included with rsync: rejecting an arg to an option that doesn't take an arg. Attached is a patch. A new error code, POPT_ERROR_UNWANTEDARG, was created to make the error message nice. This handles both -l=value and --long-arg=value wh

Re: Disallowing args

2010-06-05 Thread Jeff Johnson
On Jun 5, 2010, at 11:39 AM, Wayne Davison wrote: > Here's something that was recently fixed for the popt that is included > with rsync: rejecting an arg to an option that doesn't take an arg. > > Attached is a patch. A new error code, POPT_ERROR_UNWANTEDARG, was > created to make the error mes

Re: Disallowing args

2010-06-05 Thread Wayne Davison
On Sat, Jun 5, 2010 at 8:56 AM, Jeff Johnson wrote: > but >--foo bar > returns bar in the argument list? > Yes. The user may well have wanted it to be in the arg list. There's no way for the program to know that the user didn't just toss some options in the middle of some args (which I

Re: Disallowing args

2010-06-05 Thread Danny Sung
On 06/05/2010 8:56 AM, Jeff Johnson wrote: (aside) Anything you want to see in POPT 2.0? I'm collecting features ... Since you're collecting features... =) One thing I'd like is to extend the help/usage capability just a little. So I'd like to be able to have more descriptive usage paramete

Re: Disallowing args

2010-06-05 Thread Jeff Johnson
On Jun 5, 2010, at 12:48 PM, Wayne Davison wrote: > On Sat, Jun 5, 2010 at 8:56 AM, Jeff Johnson wrote: > but >--foo bar > returns bar in the argument list? > > Yes. The user may well have wanted it to be in the arg list. There's no way > for the program to know that the user didn't

Re: Disallowing args

2010-06-05 Thread Jeff Johnson
On Jun 5, 2010, at 12:42 PM, Danny Sung wrote: > On 06/05/2010 8:56 AM, Jeff Johnson wrote: > >> (aside) >> Anything you want to see in POPT 2.0? I'm collecting features ... >> > > Since you're collecting features... =) > > One thing I'd like is to extend the help/usage capability just a litt

Teaching POPT 2.0 about HTML/XML/YAML?

2010-06-05 Thread Jeff Johnson
Since --help is the the topic de jure ... ... adding a popt table processor callback to transform --help spewage opaquely into whatever form is desired, with some simple transforms like HTML tables or DocBook XML markup or YAML used for configuring persistent option default settings, or the exist