Просмотр исходного кода

dpkg-parsechangelog: Unify -S option parsing with other short options

Expect the value for short options contiguous to the option itself,
instead of diverging and accepting it only as the next argument.
Guillem Jover лет назад: 13
Родитель
Сommit
a864541808
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      scripts/dpkg-parsechangelog.pl

+ 3 - 1
scripts/dpkg-parsechangelog.pl

@@ -83,7 +83,9 @@ while (@ARGV) {
 	$options{changelogformat} = $1;
     } elsif (m/^-l(.+)$/) {
 	$options{file} = $1;
-    } elsif (m/^-(?:S|-show-field)(?:=(.+))?$/) {
+    } elsif (m/^-S(.+)$/) {
+	$fieldname = $1;
+    } elsif (m/^--show-field(?:=(.+))?$/) {
 	$fieldname = $1 // shift(@ARGV);
     } elsif (m/^--$/) {
 	last;