History

kernel-doc: Align quick help and the code

The update to the quick help mentions -Wshort-description, but code never supported for that. Align that with the code by allowing both: -Wshort-description and -Wshort-desc.

Andy Shevchenko committed 2 years ago

Commit dcd39fa1 parent cfecf5d1 file · +2 −2Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kernel-doc+2−2
@@ -23,7 +23,7 @@ kernel-doc - Print formatted kernel documentation to stdout · 22 unmodified lines
2323
2424 =head1 SYNOPSIS
2525
26− kernel-doc [-h] [-v] [-Werror] [-Wall] [-Wreturn] [-Wshort-description] [-Wcontents-before-sections]
26+ kernel-doc [-h] [-v] [-Werror] [-Wall] [-Wreturn] [-Wshort-desc[ription]] [-Wcontents-before-sections]
2727 [ -man |
2828 -rst [-sphinx-version VERSION] [-enable-lineno] |
2929 -none
@@ -328,7 +328,7 @@ while ($ARGV[0] =~ m/^--?(.*)/) { · 298 unmodified lines
328328 $Werror = 1;
329329 } elsif ($cmd eq "Wreturn") {
330330 $Wreturn = 1;
331− } elsif ($cmd eq "Wshort-desc") {
331+ } elsif ($cmd eq "Wshort-desc" or $cmd eq "Wshort-description") {
332332 $Wshort_desc = 1;
333333 } elsif ($cmd eq "Wcontents-before-sections") {
334334 $Wcontents_before_sections = 1;