config: remove -S command line option
Deprecated since v5 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
4be0d002a5
commit
9767b4da5a
|
@ -471,23 +471,21 @@ bool get_early_config(int argc, char *const *argv, char **config_file, bool *all
|
||||||
} else if (o == 'd') {
|
} else if (o == 'd') {
|
||||||
log_error("-d is removed, please use the DISPLAY "
|
log_error("-d is removed, please use the DISPLAY "
|
||||||
"environment variable");
|
"environment variable");
|
||||||
*exit_code = 1;
|
goto err;
|
||||||
return true;
|
|
||||||
} else if (o == 314) {
|
} else if (o == 314) {
|
||||||
*all_xerrors = true;
|
*all_xerrors = true;
|
||||||
} else if (o == 318) {
|
} else if (o == 318) {
|
||||||
printf("%s\n", COMPTON_VERSION);
|
printf("%s\n", COMPTON_VERSION);
|
||||||
return true;
|
return true;
|
||||||
} else if (o == 'S') {
|
} else if (o == 'S') {
|
||||||
log_warn("-S will be ignored");
|
log_error("-S is no longer available");
|
||||||
|
goto err;
|
||||||
} else if (o == 320) {
|
} else if (o == 320) {
|
||||||
log_error("--no-name-pixmap is no longer available");
|
log_error("--no-name-pixmap is no longer available");
|
||||||
*exit_code = 1;
|
goto err;
|
||||||
return true;
|
|
||||||
} else if (o == '?' || o == ':') {
|
} else if (o == '?' || o == ':') {
|
||||||
usage(argv[0], 1);
|
usage(argv[0], 1);
|
||||||
*exit_code = 1;
|
goto err;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -495,11 +493,13 @@ bool get_early_config(int argc, char *const *argv, char **config_file, bool *all
|
||||||
if (optind < argc) {
|
if (optind < argc) {
|
||||||
// log is not initialized here yet
|
// log is not initialized here yet
|
||||||
fprintf(stderr, "picom doesn't accept positional arguments.\n");
|
fprintf(stderr, "picom doesn't accept positional arguments.\n");
|
||||||
*exit_code = 1;
|
goto err;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
err:
|
||||||
|
*exit_code = 1;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue