Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2009, 1:43:41 PM (15 years ago)
Author:
rgrieder
Message:

Added new feature to CommandLine: arguments that cannot be specified in a file.
—optionsFile and —writingPathSuffix are now such arguments (because of obvious dependency problems).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core4/src/core/Core.cc

    r3214 r3246  
    8888
    8989    SetCommandLineArgument(mediaPath, "").information("PATH");
    90     SetCommandLineArgument(writingPathSuffix, "").information("DIR");
     90    SetCommandLineOnlyArgument(writingPathSuffix, "").information("DIR");
    9191    SetCommandLineArgument(settingsFile, "orxonox.ini");
    9292    SetCommandLineArgument(limitToCPU, 0).information("0: off | #cpu");
     
    103103    {
    104104        // Parse command line arguments fist
    105         try
    106         {
    107             CommandLine::parseAll(argc, argv);
    108         }
    109         catch (ArgumentException& ex)
    110         {
    111             COUT(1) << ex.what() << std::endl;
    112             COUT(0) << "Usage:" << std::endl << "orxonox " << CommandLine::getUsageInformation() << std::endl;
    113         }
     105        CommandLine::parseCommandLine(argc, argv);
    114106
    115107        // limit the main thread to the first core so that QueryPerformanceCounter doesn't jump
     
    137129        // Set the correct log path. Before this call, /tmp (Unix) or %TEMP% was used
    138130        OutputHandler::getOutStream().setLogPath(Core::getLogPathString());
     131
     132        CommandLine::parseFile();
    139133
    140134        // Manage ini files and set the default settings file (usually orxonox.ini)
Note: See TracChangeset for help on using the changeset viewer.