dpkg (1.20.0) experimental; urgency=medium
[ Guillem Jover ]
* perl: Switch Getopt::Long from bundling to bundling_values. This means
the few scripts using Getopt::Long will stop accepting options in the
form «-ab» for «-a -b», which is not future-proof, as it does not allow
these options to get new arguments without making them ambiguous.
On Sat, 27 Jun 2020, root wrote:
dpkg (1.20.0) experimental; urgency=medium
[ Guillem Jover ]
* perl: Switch Getopt::Long from bundling to bundling_values. This means
the few scripts using Getopt::Long will stop accepting options in the
form «-ab» for «-a -b», which is not future-proof, as it does not allow
these options to get new arguments without making them ambiguous.
You shouldn’t do that for two reasons:
1. It breaks existing users that use the short form.
2. For your example, if -a were to ever gain an argument, the existing
-b is silently used as the argument and not parsed as option any
more breaking everything horribly.
For this reason any existing option MUST NOT get an argument later.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 164:07:03 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,517 |