1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

Do not throw exception when called with zero args

This commit is contained in:
Kevin Glynn 2010-09-29 11:28:49 +02:00
parent 5ad9ea2028
commit 153670a282

View File

@ -8,7 +8,7 @@ namespace RusticiSoftware.Translator.CSharp
{
public static void Main(string[] args)
{
if (args[0].ToLower() == "-mindriver")
if (args.Length > 0 && args[0].ToLower() == "-mindriver")
{
MinDriver.MinDriverMain(args);
}