Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 24, 2008, 12:43:13 AM (16 years ago)
Author:
rgrieder
Message:

Simplified CommandLineArgument by using the new MultiType.
That also enables to get a cmd argument even if you don't know the exact type. It simply gets converted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSServer.cc

    r1949 r2003  
    3838namespace orxonox
    3939{
    40     SetCommandLineArgument(port, 55556).setShortcut("p").setInformation("0-65535");
     40    SetCommandLineArgument(port, 55556).shortcut("p").information("0-65535");
    4141
    4242    GSServer::GSServer()
     
    5656        GSLevel::enter();
    5757
    58         int serverPort = CommandLine::getArgument<int>("port")->getValue();
    59         this->server_ = new network::Server(serverPort);
     58        this->server_ = new network::Server(CommandLine::getValue("port"));
    6059        COUT(0) << "Loading scene in server mode" << std::endl;
    6160
Note: See TracChangeset for help on using the changeset viewer.