From cfc644ba493f2cd753a10d6a92da244efcff3d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 9 May 2019 19:22:11 +0200 Subject: [PATCH] main: move --check-config short option from -c to -C --- doc/f00bar.1.scd | 2 +- main.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/f00bar.1.scd b/doc/f00bar.1.scd index d8f8751..894ac89 100644 --- a/doc/f00bar.1.scd +++ b/doc/f00bar.1.scd @@ -8,7 +8,7 @@ f00bar - modular status panel for X11 and Wayland # OPTIONS -*-c, --check-config* +*-C, --check-config* Verify the configuration and then quit. If no errors are detected, nothing is printed and the exit code is 0. If there are errors, these are printed on stdout and the exit code is non-zero. diff --git a/main.c b/main.c index d7a3c83..3131c99 100644 --- a/main.c +++ b/main.c @@ -124,7 +124,7 @@ print_usage(const char *prog_name) printf("Usage: %s [OPTION]...\n", prog_name); printf("\n"); printf("Options:\n"); - printf(" -c,--check-config verify configuration then quit\n" + printf(" -C,--check-config verify configuration then quit\n" " -v,--version print f00sel version and quit\n"); } @@ -134,7 +134,7 @@ main(int argc, char *const *argv) setlocale(LC_ALL, ""); static const struct option longopts[] = { - {"check-config", no_argument, 0, 'c'}, + {"check-config", no_argument, 0, 'C'}, {"version", no_argument, 0, 'v'}, {"help", no_argument, 0, 'h'}, {NULL, no_argument, 0, 0}, @@ -143,7 +143,7 @@ main(int argc, char *const *argv) bool verify_config = false; while (true) { - int c = getopt_long(argc, argv, ":cvh", longopts, NULL); + int c = getopt_long(argc, argv, ":Cvh", longopts, NULL); if (c == -1) break;