On Tue, Jun 09, 2009 at 11:00:15AM +0300, Damyan Ivanov wrote: > I have checked the first SVN revision of debchange.pl (devscripts > package) from 2004 and it uses the Getopt::Long Perl module (from > perl-base package) for parsing command line options, which has '--' > documented: > > Mixing command line option with other arguments > Usually programs take command line options as well as other > arguments, for example, file names. It is good practice to > always specify the options first, and the other arguments > last. Getopt::Long will, however, allow the options and > arguments to be mixed and ’filter out’ all the options before > passing the rest of the arguments to the program. To stop > Getopt::Long from processing further arguments, insert > a double dash "--" on the command line: > > --size 24 -- --all > > In this example, "--all" will not be treated as an option, but > passed to the program unharmed, in @ARGV. > > Getopt::Long's CHANGES[1] file doesn't mention when '--' was initially > implemented, but mentions a bug related to '--' being fixed in release > 2.33. perl-base in oldstable has release 2.35 of the module, so > I guess no special dependency is needed whatsoever. > > [0] http://cpansearch.perl.org/src/JV/Getopt-Long-2.38/CHANGES > > > Thanks for carying. Thanks a lot for looking this up! I've pushed the change now. -- Guido
-- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org