summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-05-12 12:38:23 +0300
committerAlon Levy <alevy@redhat.com>2011-05-12 12:38:23 +0300
commit34e9375cc094c75bac05790b8acbdcc3116ad72b (patch)
tree83bbc298ff485d78bcadc26a19c14e03dab6ddf2
parent34949178a823d830c7a1666add3c4609ee494e4a (diff)
downloadspice-34e9375cc094c75bac05790b8acbdcc3116ad72b.tar.gz
spice-34e9375cc094c75bac05790b8acbdcc3116ad72b.tar.xz
spice-34e9375cc094c75bac05790b8acbdcc3116ad72b.zip
client: fix return code when missing host
-rw-r--r--client/application.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/application.cpp b/client/application.cpp
index e308ad1f..606f7e24 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -2437,6 +2437,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;
}