Is it possible to tell if a standalone player has been started with the -batchmode flag?

I would like to be able to test if an instance of a standalone player has been started with the -batchmode flag so that it will initialize as a server. Is this possible from within the player?

cheers andrew

also you can get any command line argument sent to your game by

string[] s = Environment.GetCommandLineArgs();

the first parameter is the name and path of the executable file and the other args are parameters sent to your app.

I don't believe there is an official way to do it, but a hack around is:

if (SystemInfo.graphicsDeviceName == "Null Device") {
    // batch mode!
}