diff options
author | Alon Levy <alevy@redhat.com> | 2011-05-12 12:38:23 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-05-12 12:38:23 +0300 |
commit | c49b79397cb94dea76112c4dc24cac946749501a (patch) | |
tree | 3fd78c1dce1f3b808c8327a33be38c343208f833 | |
parent | 4bd0101d95d24c87a3d4bd29e3b3d7e642f29aba (diff) |
client: fix return code when missing host
-rw-r--r-- | client/application.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/application.cpp b/client/application.cpp index e308ad1..606f7e2 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; } |