Display error message if no filenames have been specified.

This commit is contained in:
Starbeamrainbowlabs 2016-05-19 21:03:35 +01:00
父節點 2470b88a55
當前提交 b7c269acea
共有 1 個檔案被更改,包括 5 行新增0 行删除

查看文件

@ -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: