From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.8 (X11; Linux i686; U;) Gecko/20021208 Description of problem: The attached patch adds support for abbreviated long options to popt-1.7 (possibly other versions as well). How it works: 1. if there is an exact match for a long option, use it. 2. else check if there are multiple partial matches and complain about ambiguous long option. 3. else use long option that matches. The patch adds the new error symbol POPT_ERROR_AMBIGUOUS (-12) Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: N/A Additional info: To obtain behaviour similar to GNU getopt(3), it should be considered to detect short options before looking at long options. That way a short option would always be preferred if the following conditions apply (assuming a program getpopt exists that resembles getopt(1) from util-linux). Currently: getpopt -a -ol -llong -- -l -long -- To be considered: getpopt -a -ol -llong -- -l -l --
Created attachment 90458 [details] Support abbreviated long options in popt
Reasonable idea, I'll get there yet ...
Oh, I forgot to mention that you can download getpopt here: http://webpages.charter.net/harnisch/downloads/getpopt-0.12.tar.gz Please don't post the address to Slashdot :-)
Closing bugs on older, no longer supported, releases. Apologies for any lack of response. For RPM issues, please try a current release such as Fedora Core 4; if bugs persist, please open a new issue.