]> granicus.if.org Git - sysstat/commitdiff
Rearrange options displayed by sar -h
authorSebastien GODARD <sysstat@orange.fr.fake>
Sun, 29 Sep 2013 13:21:22 +0000 (15:21 +0200)
committerSebastien GODARD <sysstat@orange.fr.fake>
Sun, 29 Sep 2013 13:21:22 +0000 (15:21 +0200)
Rearrange options displayed by sar in its short help message
(sar -h): The upper case option should be displayed before its lower
case counterpart to be consistent with options order displayed by sar
usage message or displayed in sar manual page.

Signed-off-by: Sebastien GODARD <sysstat@orange.fr.fake>
sar.c

diff --git a/sar.c b/sar.c
index b03b486f2e7dcc3890331236dec6e0d71b869595..343eebbd22227dab967bea05673555d68f0f37ba 100644 (file)
--- a/sar.c
+++ b/sar.c
@@ -129,8 +129,8 @@ void display_help(char *progname)
 {
        print_usage_title(stdout, progname);
        printf(_("Main options and reports:\n"));
-       printf(_("\t-b\tI/O and transfer rate statistics\n"));
        printf(_("\t-B\tPaging statistics\n"));
+       printf(_("\t-b\tI/O and transfer rate statistics\n"));
        printf(_("\t-d\tBlock devices statistics\n"));
        printf(_("\t-F\tFilesystems statistics\n"));
        printf(_("\t-H\tHugepages utilization statistics\n"));
@@ -167,14 +167,14 @@ void display_help(char *progname)
                 "\t\tEICMP6\tICMP traffic\t(v6) (errors)\n"
                 "\t\tUDP6\tUDP traffic\t(v6)\n"));
        printf(_("\t-q\tQueue length and load average statistics\n"));
-       printf(_("\t-r\tMemory utilization statistics\n"));
        printf(_("\t-R\tMemory statistics\n"));
+       printf(_("\t-r\tMemory utilization statistics\n"));
        printf(_("\t-S\tSwap space utilization statistics\n"));
        printf(_("\t-u [ ALL ]\n"
                 "\t\tCPU utilization statistics\n"));
        printf(_("\t-v\tKernel tables statistics\n"));
-       printf(_("\t-w\tTask creation and system switching statistics\n"));
        printf(_("\t-W\tSwapping statistics\n"));
+       printf(_("\t-w\tTask creation and system switching statistics\n"));
        printf(_("\t-y\tTTY devices statistics\n"));
        exit(0);
 }