You may know of these already, "-dedicated", "-mod editor", "-gamemode slayer", etc. Turns out, they're easily accessible and can be mounted to your advantage. This might not be necessary for some people, but if you're running something with an advanced back-end, this could come in handy.
In this example I used "-maxcash value" to set $maxcash.
for (%a = 1; %a < $Game::argc; %a++)
{
%nextArg = $Game::argv[%a+1];
%hasNextArg = $Game::argc - %a > 1;
if($Game::argv[%a] $= "-maxcash")
{
$argUsed[%a]++;
if(%hasNextArg)
{
$maxcash = %nextArg;
$argUsed[%a+1]++;
$a++;
}
else
{
error("Error: Missing Command Line argument. Usage: -maxcash <parem>");
}
}
}
That's basically it.