diff options
| author | Niels Thykier <niels@thykier.net> | 2019-08-15 10:16:02 +0000 |
|---|---|---|
| committer | Niels Thykier <niels@thykier.net> | 2019-08-15 10:38:38 +0000 |
| commit | 4300655ff734dd14551040d61c721838fcbaf7af (patch) | |
| tree | 99ea1bbf6b5ffcf7e606b478ca80b14284281015 /lib | |
| parent | d3e7d3e0293166ed836ae73073eb5fdd511b8693 (diff) | |
| download | debhelper-4300655ff734dd14551040d61c721838fcbaf7af.tar.gz | |
Disable auto-abbrev of cli options in c13 to enable dh optimizations
Disable auto-abbreviation of command-line options in compat 13 and
re-enable dh's optimization for skipping redundant commands when
passed long options.
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Debian/Debhelper/Dh_Getopt.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Debian/Debhelper/Dh_Getopt.pm b/lib/Debian/Debhelper/Dh_Getopt.pm index a35d9588..591f0e22 100644 --- a/lib/Debian/Debhelper/Dh_Getopt.pm +++ b/lib/Debian/Debhelper/Dh_Getopt.pm @@ -95,6 +95,9 @@ sub getoptions { Getopt::Long::config("bundling"); } Getopt::Long::config('no_ignore_case'); + if (! compat(12, 1)) { + Getopt::Long::config('no_auto_abbrev'); + } my @test; my %options=( |
