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.

Location:
code/branches/doc/src/orxonox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/doc/src/orxonox/LevelManager.cc

    r7335 r7357  
    4242namespace orxonox
    4343{
    44     //! @cmdarg
    4544    SetCommandLineArgument(level, "").shortcut("l").information("Default level file (overrides LevelManager::defaultLevelName_ configValue)");
    4645
  • 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");
  • code/branches/doc/src/orxonox/gamestates/GSClient.cc

    r7335 r7357  
    4040    DeclareGameState(GSClient, "client", false, false);
    4141
    42     //! @cmdarg
    4342    SetCommandLineArgument(dest, "127.0.0.1").information("Server hostname/IP (IP in the form of #.#.#.#)");
    4443
  • code/branches/doc/src/orxonox/gamestates/GSServer.cc

    r7335 r7357  
    3939    DeclareGameState(GSServer, "server", false, false);
    4040
    41     //! @cmdarg
    4241    SetCommandLineArgument(port, 55556).shortcut("p").information("Network communication port to be used 0-65535 (default: 55556)");
    4342
Note: See TracChangeset for help on using the changeset viewer.