Skip Menu |

This queue is for tickets about the Getopt-Long CPAN distribution.

Report information
The Basics
Id: 119165
Status: rejected
Priority: 0/
Queue: Getopt-Long

People
Owner: Nobody in particular
Requestors: PERLANCAR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.49.1
Fixed in: (no value)



Subject: gnu_compat disables bundling, is this intended?
The documentation only says: Show quoted text
> "gnu_compat" controls whether "--opt=" is allowed, and what it should do. Without "gnu_compat", > "--opt=" gives an error. With "gnu_compat", "--opt=" will give option "opt" and empty value. > This is the way GNU getopt_long() does it.
but the code does this: elsif ( $try eq 'gnu_compat' ) { $gnu_compat = $action; $bundling = 0; $bundling_values = 1; }
For those who happen to face the same issue, the current workaround is to enable 'bundling' *after* 'gnu_compat'.
Can you make a PR for a doc fix? https://github.com/sciurius/perl-Getopt-Long
Rejected due to lack of interest.