private static void ParseCommandLine(string[] args)
{
int i = 0;
while (i < args.Length)
{
string s = args[i];
switch (s.ToLower())
{
case "-in":
i++;
gInFileName = args[i];
break;
case "-out":
i++;
gOutFileName = args[i];
break;
case "-config":
// Skip the name of the config file and do nothing.
i++;
break;
case "-log":
// Skip the name of the log file and do nothing.
i++;
break;
default:
throw new Exception("Unknown command line argument: " + s);
}
i++;
}
}