rem: if (argc > 1) {  activate_workspace(atoi(argv[1]));    if (IsLaunching()) Quit();
add: for (int i = 1;  i < argc;  i++) { if (argv[i][0] == '-' && argv[i][1] == '-') {  if (!strcmp(argv[i], "--notitle")) { fWindow->SetLook(B_MODAL_WINDOW_LOOK); fWindow->SetFlags(B_OUTLINE_RESIZE); } else if (!strcmp(argv[i], "--noborder")) fWindow->SetLook(B_NO_BORDER_WINDOW_LOOK); else if (!strcmp(argv[i], "--acceptfirstclick")) fWindow->SetFlags(B_WILL_ACCEPT_FIRST_CLICK); else if (!strcmp(argv[i], "--avoidfocus")) fWindow->SetFlags(B_AVOID_FOCUS); else if (!strcmp(argv[i], "--alwaysontop")) fWindow->SetFeel(B_FLOATING_ALL_WINDOW_FEEL); else { const char *programName = strrchr(argv[0], '/'); programName = programName ? programName + 1 : argv[0];  Usage(programName); } } else if (isdigit(*argv[i])) {  activate_workspace(atoi(argv[i]));     if (IsLaunching()) Quit(); }
context: WorkspacesApp::ArgvReceived(int32 argc, char **argv){	// we are told to switch to a specific workspace	if (argc > 1) {		// get it from the command line...		activate_workspace(atoi(argv[1]));		// if the app is running, don't quit		// but if it isn't, cancel the complete run, so it doesn't		// open any window		if (IsLaunching())			Quit();	}}