Revision e4ebcc1a

b/ui/cocoa.m
865 865

  
866 866
    /* In case we don't need to display a window, let's not do that */
867 867
    for (i = 1; i < argc; i++) {
868
        if (!strcmp(argv[i], "-vnc") ||
869
            !strcmp(argv[i], "-nographic") ||
870
            !strcmp(argv[i], "-curses")) {
868
        const char *opt = argv[i];
869

  
870
        if (opt[0] == '-') {
871
            /* Treat --foo the same as -foo.  */
872
            if (opt[1] == '-') {
873
                opt++;
874
            }
875
            if (!strcmp(opt, "-vnc") ||
876
                !strcmp(opt, "-nographic") ||
877
                !strcmp(opt, "-version") ||
878
                !strcmp(opt, "-curses")) {
871 879
                return qemu_main(gArgc, gArgv);
880
            }
872 881
        }
873 882
    }
874 883

  

Also available in: Unified diff