RPM Community Forums

Mailing List Message of <popt-devel>

Disallowing args

From: Wayne Davison <wayned@samba.org>
Date: Sat 05 Jun 2010 - 17:39:16 CEST
Message-ID: <AANLkTimwGFh7ix9C565FcDXpjjXZ0Hk6jZxaKPS7xQUT@mail.gmail.com>
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 where neither one is supposed to take a value.

..wayne..


Received on Sat Jun 5 17:47:32 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.