mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-25 05:15:41 +02:00
main: rename --check-config -> --validate
This commit is contained in:
parent
cfc644ba49
commit
f6ed729cf3
2 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@ f00bar - modular status panel for X11 and Wayland
|
||||||
|
|
||||||
# OPTIONS
|
# OPTIONS
|
||||||
|
|
||||||
*-C, --check-config*
|
*-C, --validate*
|
||||||
Verify the configuration and then quit. If no errors are detected,
|
Verify the configuration and then quit. If no errors are detected,
|
||||||
nothing is printed and the exit code is 0. If there are errors,
|
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.
|
these are printed on stdout and the exit code is non-zero.
|
||||||
|
|
6
main.c
6
main.c
|
@ -124,7 +124,7 @@ print_usage(const char *prog_name)
|
||||||
printf("Usage: %s [OPTION]...\n", prog_name);
|
printf("Usage: %s [OPTION]...\n", prog_name);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf("Options:\n");
|
printf("Options:\n");
|
||||||
printf(" -C,--check-config verify configuration then quit\n"
|
printf(" -C,--validate verify configuration then quit\n"
|
||||||
" -v,--version print f00sel version and quit\n");
|
" -v,--version print f00sel version and quit\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ main(int argc, char *const *argv)
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
|
|
||||||
static const struct option longopts[] = {
|
static const struct option longopts[] = {
|
||||||
{"check-config", no_argument, 0, 'C'},
|
{"validate", no_argument, 0, 'C'},
|
||||||
{"version", no_argument, 0, 'v'},
|
{"version", no_argument, 0, 'v'},
|
||||||
{"help", no_argument, 0, 'h'},
|
{"help", no_argument, 0, 'h'},
|
||||||
{NULL, no_argument, 0, 0},
|
{NULL, no_argument, 0, 0},
|
||||||
|
@ -148,7 +148,7 @@ main(int argc, char *const *argv)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'c':
|
case 'C':
|
||||||
verify_config = true;
|
verify_config = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue