Aim: unified POD, user more satisfied, script better structured You can see the results with: $ scripts/kernel-doc -help
Unified · Split
| @@ -79,15 +79,6 @@ See Documentation/doc-guide/kernel-doc.rst for the documentation comment syntax. · 78 unmodified lines | ||
| 79 | 79 | # 25/07/2012 - Added support for HTML5 |
| 80 | 80 | # -- Dan Luedtke <mail@danrl.de> |
| 81 | 81 | |
| 82 | −sub usage { | |
| 83 | − my $message = <<"EOF"; | |
| 84 | −Usage: $0 [OPTION ...] FILE ... | |
| 85 | − | |
| 86 | −EOF | |
| 87 | − print $message; | |
| 88 | − exit 1; | |
| 89 | −} | |
| 90 | − | |
| 91 | 82 | # |
| 92 | 83 | # format of comments. |
| 93 | 84 | # In the following table, (...)? signifies optional structure. |
| @@ -468,7 +459,7 @@ while ($ARGV[0] =~ m/^--?(.*)/) { · 374 unmodified lines | ||
| 468 | 459 | } elsif ($cmd eq "Werror") { |
| 469 | 460 | $Werror = 1; |
| 470 | 461 | } elsif (($cmd eq "h") || ($cmd eq "help")) { |
| 471 | − usage(); | |
| 462 | + pod2usage(-exitval => 0, -verbose => 2); | |
| 472 | 463 | } elsif ($cmd eq 'no-doc-sections') { |
| 473 | 464 | $no_doc_sections = 1; |
| 474 | 465 | } elsif ($cmd eq 'enable-lineno') { |