Commit 2d7bb290 authored by Dirk Wilden's avatar Dirk Wilden

ignore darwin -psn flags

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4820 383ad7c9-94d9-4d36-a494-682f7c89f535
parent efab96c0
......@@ -130,6 +130,7 @@ CSimpleOpt::SOption g_rgOptions[] = {
{ OPT_NOSPLASH , (char*) "--no-splash" , SO_NONE },
{ OPT_HIDDDEN_TOOLBOX , (char*) "-t" , SO_NONE },
{ OPT_LOAD_POLYMESHES , (char*) "-p" , SO_NONE },
// { OPT_DARWINPHANTOM , (char*) "-psn_" , SO_NONE },
{ OPT_REMOTE , (char*) "--remote-control" , SO_NONE },
SO_END_OF_OPTIONS // END
};
......@@ -214,7 +215,15 @@ bool parseCommandLineOptions(CSimpleOpt& args){
// while there are arguments left to process
while (args.Next()) {
//ignore Darwin -psn flags
std::string argStr( args.OptionText() );
if ( argStr.find("-psn") != std::string::npos)
continue;
if (args.LastError() == SO_SUCCESS) {
switch (args.OptionId() ) {
case OPT_BATCH:
OpenFlipper::Options::nogui(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment