(main) [_WIN32]: Add check to command line checks to ensure
-p is not used with install or remove sevice options. (main) [_WIN32]: Improve error messages for errors found duing the command line checks.
This commit is contained in:
parent
6a99690e4e
commit
706e124e82
1 changed files with 8 additions and 8 deletions
|
@ -168,20 +168,20 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
if ((debug || datadir_set || config_file != NULL) &&
|
if ((debug || flags || datadir_set || config_file != NULL) &&
|
||||||
remove_service_set) {
|
remove_service_set) {
|
||||||
fprintf(stderr, "Can't use -d, -D or -e with either "
|
fprintf(stderr, "Can't use -p, -d, -D or -e with either "
|
||||||
"-r or -R options when starting the server\n");
|
"-r or -R options\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (debug && install_service_set) {
|
if ((debug || flags) && install_service_set) {
|
||||||
fprintf(stderr, "Can't use -d with either "
|
fprintf(stderr, "Can't use -d or -p with either "
|
||||||
"-i or -I options when starting the server\n");
|
"-i or -I options\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (install_service_set && remove_service_set) {
|
if (install_service_set && remove_service_set) {
|
||||||
fprintf(stderr, "Can't use both -r or -R and -i or -I options when starting "
|
fprintf(stderr, "Can't use both -r or -R and -i or -I "
|
||||||
"the server\n");
|
"options\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue