Display error message if no filenames have been specified.
This commit is contained in:
parent
2470b88a55
commit
b7c269acea
1 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,11 @@ namespace SpritePacker
|
||||||
switch(programMode)
|
switch(programMode)
|
||||||
{
|
{
|
||||||
case ProgramMode.Normal:
|
case ProgramMode.Normal:
|
||||||
|
if(values.Count == 0)
|
||||||
|
{
|
||||||
|
Console.Error.WriteLine("Error: No filenames specified!");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
RunNormal();
|
RunNormal();
|
||||||
break;
|
break;
|
||||||
case ProgramMode.DisplayHelpText:
|
case ProgramMode.DisplayHelpText:
|
||||||
|
|
Loading…
Reference in a new issue