* Jochen Striepe <joc...@tolot.escape.de> [2015-03-19 13:03:59 CET]: > On Thu, Mar 19, 2015 at 11:45:36AM +0100, Carsten Otto wrote: > > The option "-c", documented as follows, cannot be used as "-c=1". > > > > -c[=n] merge multiple blank lines to n lines (default is 2) > > > > When using t-prot -c=1 this error is shown: > > Unknown option: = > > Unknown option: 1 > > Usage: [...] > > > > Using --c=1 (two hyphens) seems to work.
-c1 also is expected to work. That's the way Getopt::Long handles bundling of options and values when using short options. The equal sign can only be used in the long variant. The same is true for all other short-options aswell. Short options (with only one dash) treat the next non-blank character already as first character of the value handed to that option. So updating the documentation along that lines should be done for all short options, not only for that single one. :) (works as documented in the manpage, btw. ;)) I think this might have been the one thing we overlooked when we switched from Getopt::Mixed to Getopt::Long. > It might be a good idea to reassign this bug to Getopt::Long, as > it's this module which does not work as advertised. Where do you read that -c=1 is advertized in that module? I came to a different conclusion when looking into it? Are you thinking of the time when we still used Getopt::Mixed and puzzling it with back then? Oh the memories. :) Enjoy! Rhonda -- Fühlst du dich mutlos, fass endlich Mut, los | Fühlst du dich hilflos, geh raus und hilf, los | Wir sind Helden Fühlst du dich machtlos, geh raus und mach, los | 23.55: Alles auf Anfang Fühlst du dich haltlos, such Halt und lass los | -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org