Commit 69de4fb4 authored by Dirk Wilden's avatar Dirk Wilden

fixed commandline

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5583 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5e2f7e32
...@@ -280,15 +280,17 @@ int main(int argc, char **argv) ...@@ -280,15 +280,17 @@ int main(int argc, char **argv)
OpenFlipper::Options::argc(&argc); OpenFlipper::Options::argc(&argc);
OpenFlipper::Options::argv(&argv); OpenFlipper::Options::argv(&argv);
CSimpleOpt args(argc, argv, g_rgOptions); CSimpleOpt argBatch(argc, argv, g_rgOptions);
//check only batchMode before the core is created //check only batchMode before the core is created
while (args.Next()) while (argBatch.Next())
if (args.OptionId() == OPT_BATCH ){ if (argBatch.OptionId() == OPT_BATCH ){
OpenFlipper::Options::nogui(true); OpenFlipper::Options::nogui(true);
break; break;
} }
CSimpleOpt args(argc, argv, g_rgOptions);
// Only Install signal handler if not running in debug version, otherwise gdb will get confused // Only Install signal handler if not running in debug version, otherwise gdb will get confused
// #ifndef DEBUG // #ifndef DEBUG
// Set a handler for segfaults // Set a handler for segfaults
......
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