Messages in this thread Patch in this message | | | From | Cruz Julian Bishop <> | Subject | [PATCH 1/4] scripts/checkincludes.pl: Print usage with heredoc | Date | Fri, 31 Aug 2012 23:18:07 +1000 |
| |
This is already used in checkpatch.pl, and is easier to read, so I am changing it in checkincludes as well.
Additionally, this makes the usage output theoretically easier to edit. In practise, there's almost no difference
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com> --- scripts/checkincludes.pl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/scripts/checkincludes.pl b/scripts/checkincludes.pl index 97b2c61..801ed5f 100755 --- a/scripts/checkincludes.pl +++ b/scripts/checkincludes.pl @@ -14,9 +14,13 @@ use strict; sub usage { - print "Usage: checkincludes.pl [-r]\n"; - print "By default we just warn of duplicates\n"; - print "To remove duplicated includes in place use -r\n"; + print <<EOM; +Usage: checkincludes.pl [OPTIONS]... FILE... +By default, we just warn of duplicates. + +Options: + -r Remove duplicated includes in place +EOM exit 1; } -- 1.7.9.5
| |