[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

moving a to a: in getopt (was Re: apt-listchanges: changelogs for tglase-nb.lan.tarent.de)



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.

bye,
//mirabilos
-- 
«MyISAM tables -will- get corrupted eventually. This is a fact of life. »
“mysql is about as much database as ms access” – “MSSQL at least descends
from a database” “it's a rebranded SyBase” “MySQL however was born from a
flatfile and went downhill from there” – “at least jetDB doesn’t claim to
be a database”	(#nosec)    ‣‣‣ Please let MySQL and MariaDB finally die!


Reply to: