diff --git a/checkin_notes b/checkin_notes index 31346891ad..b00312eb44 100644 --- a/checkin_notes +++ b/checkin_notes @@ -3997,3 +3997,11 @@ Rom May 14 2008 clientgui/ BOINCClientManager.cpp + +Rom May 14 2008 + - MGR: BOINC commandline options require the '--' in front + of the option. '-' just causes the CC to exit while + printing its help fr the commandline options. + + clientgui/ + BOINCClientManager.cpp diff --git a/clientgui/BOINCClientManager.cpp b/clientgui/BOINCClientManager.cpp index fca23d58d2..15b65bd317 100644 --- a/clientgui/BOINCClientManager.cpp +++ b/clientgui/BOINCClientManager.cpp @@ -162,7 +162,7 @@ bool CBOINCClientManager::StartupBOINCCore() { // Append boinc.exe to the end of the strExecute string and get ready to rock strExecute.Printf( - wxT("\"%s\\boinc.exe\" -redirectio -launched_by_manager %s"), + wxT("\"%s\\boinc.exe\" --redirectio --launched_by_manager %s"), wxGetApp().GetRootDirectory().c_str(), wxGetApp().GetArguments().c_str() ); @@ -231,17 +231,17 @@ bool CBOINCClientManager::StartupBOINCCore() { #if 0 // The Mac version of wxExecute(wxString& ...) crashes if there is a space in the path strExecute = wxT("\""); strExecute += wxT(buf); - strExecute += wxT("/Contents/Resources/boinc\" -redirectio -launched_by_manager"); + strExecute += wxT("/Contents/Resources/boinc\" --redirectio --launched_by_manager"); m_lBOINCCoreProcessId = ::wxExecute(strExecute); #else // Use wxExecute(wxChar **argv ...) instead of wxExecute(wxString& ...) strcat(buf, "/Contents/Resources/boinc"); argv[0] = buf; - argv[1] = "-redirectio"; - argv[2] = "-launched_by_manager"; + argv[1] = "--redirectio"; + argv[2] = "--launched_by_manager"; argv[3] = NULL; #ifdef SANDBOX - if (! g_use_sandbox) { - argv[3] = "-insecure"; + if (!g_use_sandbox) { + argv[3] = "--insecure"; argv[4] = NULL; } #endif @@ -263,9 +263,9 @@ bool CBOINCClientManager::StartupBOINCCore() { #else // Unix based systems // Append boinc.exe to the end of the strExecute string and get ready to rock - strExecute = ::wxGetCwd() + wxT("/boinc -redirectio -launched_by_manager"); + strExecute = ::wxGetCwd() + wxT("/boinc --redirectio --launched_by_manager"); if (!g_use_sandbox) { - strExecute += wxT(" -insecure"); + strExecute += wxT(" --insecure"); } wxLogTrace(wxT("Function Status"), wxT("CMainDocument::StartupBOINCCore - szExecute '%s'\n"), strExecute.c_str());