From 28a03ea73cc5e09397b9656b167051b47f8d24d4 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 16 Sep 2021 17:21:15 -0700 Subject: vmon: rename -{x,y} flags to -{W,H} also sort flags alphabetically in help output --- src/vmon.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/vmon.c') diff --git a/src/vmon.c b/src/vmon.c index c8e21f9..9e13c04 100644 --- a/src/vmon.c +++ b/src/vmon.c @@ -185,15 +185,15 @@ static void print_help(void) " -- Sentinel, subsequent arguments form command to execute\n" " -f --fullscreen Fullscreen window\n" " -h --help Show this help\n" - " -n --name Name of chart, shows in window title and output filenames\n" + " -H --height Window height\n" " -l --linger Don't exit when top-level process exits\n" - " -p --pid PID of the top-level process to monitor (1 if unspecified)\n" - " -x --width Window width\n" - " -y --height Window height\n" - " -z --hertz Sample rate in hertz\n" + " -n --name Name of chart, shows in window title and output filenames\n" " -o --output-dir Directory to store saved output to (\".\" if unspecified)\n" + " -p --pid PID of the top-level process to monitor (1 if unspecified)\n" " -s --snapshot Save a PNG snapshot upon receiving SIGCHLD\n" " -v --version Print version\n" + " -W --width Window width\n" + " -z --hertz Sample rate in hertz\n" "-----------------------------------------------------------------------------" ); } @@ -246,12 +246,12 @@ static int vmon_handle_argv(vmon_t *vmon, int argc, char * const argv[]) return 0; last = ++argv; - } else if (is_flag(*argv, "-x", "--width")) { + } else if (is_flag(*argv, "-W", "--width")) { if (!parse_flag_int(argv, end, argv + 1, WIDTH_MIN, INT_MAX, &vmon->width)) return 0; last = ++argv; - } else if (is_flag(*argv, "-y", "--height")) { + } else if (is_flag(*argv, "-H", "--height")) { if (!parse_flag_int(argv, end, argv + 1, HEIGHT_MIN, INT_MAX, &vmon->height)) return 0; -- cgit v1.2.3