From 1d578a532ac87ede90c01b6a3eb8a8c74eca4787 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 2 Oct 2013 08:13:40 +0200 Subject: ifpps: min: minor: Keep options sorted alphabetically Keep the options sorted alphabetically, argument options first. Signed-off-by: Tobias Klauser --- ifpps.8 | 6 +++--- ifpps.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ifpps.8 b/ifpps.8 index 6980f94..5eeec29 100644 --- a/ifpps.8 +++ b/ifpps.8 @@ -62,9 +62,6 @@ Statistics refresh interval in milliseconds, default is 1000ms. .SS -c, --csv Output (once) the ncurses data to the terminal as gnuplot(1)-ready data. .PP -.SS -o, --omit-header -Omit printing the CSV header. This option is only available if \[lq]\-c\[rq] is given. -.PP .SS -l, --loop Continuously output the terminal data after a refresh interval. This option is only available if option \[lq]\-c\[rq] is given. For \[lq]\-l\[rq] it is @@ -75,6 +72,9 @@ later with gnuplot(1). Show median values across all CPUs for CPU load, interrupts (per interval and absolute) and software interrupts. .PP +.SS -o, --omit-header +Omit printing the CSV header. This option is only available if \[lq]\-c\[rq] is given. +.PP .SS -p, --promisc Turn on promiscuous mode for the given networking device. .PP diff --git a/ifpps.c b/ifpps.c index 6e29ec5..02bb6af 100644 --- a/ifpps.c +++ b/ifpps.c @@ -75,15 +75,15 @@ static int show_median = 0, show_percentage = 0; static WINDOW *stats_screen = NULL; static struct utsname uts; -static const char *short_options = "d:n:t:colmpPWvh"; +static const char *short_options = "d:n:t:clmopPWvh"; static const struct option long_options[] = { {"dev", required_argument, NULL, 'd'}, {"num-cpus", required_argument, NULL, 'n'}, {"interval", required_argument, NULL, 't'}, {"csv", no_argument, NULL, 'c'}, - {"omit-header", no_argument, NULL, 'o'}, {"loop", no_argument, NULL, 'l'}, {"median", no_argument, NULL, 'm'}, + {"omit-header", no_argument, NULL, 'o'}, {"promisc", no_argument, NULL, 'p'}, {"percentage", no_argument, NULL, 'P'}, {"no-warn", no_argument, NULL, 'W'}, @@ -120,9 +120,9 @@ static void __noreturn help(void) " -n|--num-cpus Number of top hitter CPUs in ncurses mode (def: 5)\n" " -t|--interval