Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 5, 2010, 6:50:17 PM (14 years ago)
Author:
rgrieder
Message:

Changed command line arguments reference to a simple Doxygen page containing the usage information text.

File:
1 edited

Legend:

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

    r7335 r7357  
    3737
    3838#include <cassert>
     39#include <fstream>
    3940#include <vector>
    4041
     
    7778    Core* Core::singletonPtr_s  = 0;
    7879
    79     //! @cmdarg
    8080    SetCommandLineArgument(settingsFile, "orxonox.ini").information("THE configuration file");
    81     //! @cmdarg
    8281    SetCommandLineSwitch(noIOConsole).information("Use this if you don't want to use the IOConsole (for instance for Lua debugging)");
    8382
    8483#ifdef ORXONOX_PLATFORM_WINDOWS
    85     //! @cmdarg
    8684    SetCommandLineArgument(limitToCPU, 1).information("Limits the program to one CPU/core (1, 2, 3, etc.). Default is the first core (faster than off)");
    8785#endif
     
    174172        // Create singletons that always exist (in other libraries)
    175173        this->rootScope_.reset(new Scope<ScopeID::Root>());
     174
     175        // Generate documentation instead of normal run?
     176        std::string docFilename;
     177        CommandLineParser::getValue("generateDoc", &docFilename);
     178        if (!docFilename.empty())
     179        {
     180            std::ofstream docFile(docFilename.c_str());
     181            if (docFile.is_open())
     182            {
     183                CommandLineParser::generateDoc(docFile);
     184                docFile.close();
     185            }
     186            else
     187                COUT(0) << "Error: Could not open file for documentation writing" << endl;
     188        }
    176189    }
    177190
Note: See TracChangeset for help on using the changeset viewer.