There was already a check in place to avoid displaying a window in certain modes such as vnc, nographic or curses.
Add a check for '-h' to avoid displaying a window for a split- second before showing the usage information. Signed-off-by: Alexandre Raymond <cerb...@gmail.com> --- ui/cocoa.m | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 20f91bc..7fb8d96 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -865,7 +865,8 @@ int main (int argc, const char * argv[]) { /* In case we don't need to display a window, let's not do that */ for (i = 1; i < argc; i++) { - if (!strcmp(argv[i], "-vnc") || + if (!strcmp(argv[i], "-h") || + !strcmp(argv[i], "-vnc") || !strcmp(argv[i], "-nographic") || !strcmp(argv[i], "-curses")) { return qemu_main(gArgc, gArgv); -- 1.7.5