Display error message if no filenames have been specified.

This commit is contained in:
Starbeamrainbowlabs 2016-05-19 21:03:35 +01:00
parent 2470b88a55
commit b7c269acea

View file

@ -52,6 +52,11 @@ namespace SpritePacker
switch(programMode)
{
case ProgramMode.Normal:
if(values.Count == 0)
{
Console.Error.WriteLine("Error: No filenames specified!");
return 1;
}
RunNormal();
break;
case ProgramMode.DisplayHelpText: