client: fix return code when missing host

This commit is contained in:
Alon Levy 2011-05-12 12:38:23 +03:00
parent 9a03fbcbe4
commit f73a05021c

View File

@ -2429,6 +2429,7 @@ bool Application::process_cmd_line(int argc, char** argv, bool &full_screen)
if (host.empty()) {
Platform::term_printf("%s: missing --host\n", argv[0]);
_exit_code = SPICEC_ERROR_CODE_CMD_LINE_ERROR;
return false;
}