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/orxonox/Main.cc

    r7353 r7357  
    4848namespace orxonox
    4949{
    50     //! @cmdarg
    5150    SetCommandLineSwitch(console).information("Start in console mode (text IO only)");
    52     //! @cmdarg
    5351    SetCommandLineSwitch(server).information("Start in server mode");
    54     //! @cmdarg
    5552    SetCommandLineSwitch(client).information("Start in client mode");
    56     //! @cmdarg
    5753    SetCommandLineSwitch(dedicated).information("Start in dedicated server mode");
    58     //! @cmdarg
    5954    SetCommandLineSwitch(standalone).information("Start in standalone mode");
    60     //! @cmdarg
    6155    SetCommandLineSwitch(dedicatedClient).information("Start in dedicated client mode");
    6256
    63     //! @cmdarg
    64     SetCommandLineSwitch(generateDoc)
     57    SetCommandLineArgument(generateDoc, "")
    6558        .information("Generates a Doxygen file from things like SetConsoleCommand");
    66     //! @cmdarg
    67     SetCommandLineArgument(docFile, "Internal.dox")
    68         .information("Name of the doc file to be generated with --generateDoc");
    6959
    7060    /**
     
    7666        Game* game = new Game(strCmdLine);
    7767
    78         if (CommandLineParser::getValue("generateDoc").getBool())
    79         {
    80             // Generate additional documentation written to ONE file
    81             std::string filename;
    82             CommandLineParser::getValue("docFile", &filename);
    83         }
    84         else
     68        if (CommandLineParser::getValue("generateDoc").getString().empty())
    8569        {
    8670            game->setStateHierarchy(
     
    9680            game->requestState("root");
    9781
    98             // Some development hacks (not really, but in the future, this calls won't make sense anymore)
     82            // Some development hacks (not really, but in the future, these calls won't make sense anymore)
    9983            if (CommandLineParser::getValue("standalone").getBool())
    10084                Game::getInstance().requestStates("graphics, standalone, level");
Note: See TracChangeset for help on using the changeset viewer.