Skip Cocoa's options in wxCmdLineParser on OS X
Skip Cocoa-specific flags used by Xcode (such as -AppleLanguages) on OS X when parsing the command line. They all take a single argument, so skip both the flag and the following value in the argv list. Also fix handling of -ApplePersistenceIgnoreState, which didn't skip the value as it should. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -843,9 +843,13 @@ int wxCmdLineParser::Parse(bool showUsage)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#ifdef __WXOSX__
|
#ifdef __WXOSX__
|
||||||
if ( arg == wxT("-ApplePersistenceIgnoreState") )
|
if ( arg == wxS("-ApplePersistenceIgnoreState") ||
|
||||||
|
arg == wxS("-AppleTextDirection") ||
|
||||||
|
arg == wxS("-AppleLocale") ||
|
||||||
|
arg == wxS("-AppleLanguages") )
|
||||||
{
|
{
|
||||||
maybeOption = false;
|
maybeOption = false;
|
||||||
|
n++;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user