Re: Disallowing args

2010-06-17 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 message

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 n3...@mac.com 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

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 little. Well