summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2019-08-15 10:16:02 +0000
committerNiels Thykier <niels@thykier.net>2019-08-15 10:38:38 +0000
commit4300655ff734dd14551040d61c721838fcbaf7af (patch)
tree99ea1bbf6b5ffcf7e606b478ca80b14284281015 /lib
parentd3e7d3e0293166ed836ae73073eb5fdd511b8693 (diff)
downloaddebhelper-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.pm3
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=(