RPM Community Forums

Mailing List Message of <popt-devel>

Allow equal after a short option

From: Wayne Davison <wayned@samba.org>
Date: Sat 08 Mar 2008 - 18:02:36 CET
Message-ID: <20080308170236.GA14813@herod.dreamhost.com>
I think it would be nice to allow an equal to separate a short option
letter from its abutting argument.  e.g. these commands using the test1
executable would all work the same:

 ./test1 -2 foo
 ./test1 -2=foo
 ./test1 -2foo
 ./test1 --arg2 foo
 ./test1 --arg2=foo

Since this has been a syntax error in released versions of popt, this
should not cause a compatibility problem.  This fix requires my prior
patch to make sure that short-option parsing doesn't have longArg set.


Received on Sat Mar 8 18:02:39 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.