Further fixes to logging and SL read

This commit is contained in:
Matt Nadareski
2016-05-27 10:55:21 -07:00
parent a8686d0b7b
commit ce12700cb1
2 changed files with 4 additions and 1 deletions

View File

@@ -323,7 +323,7 @@ namespace SabreTools
}
else
{
logger.Warning("Invalid input detected: " + arg);
logger.Error("Invalid input detected: " + arg);
Console.WriteLine();
Build.Help();
logger.Close();
@@ -343,6 +343,7 @@ namespace SabreTools
if (help || !(add ^ (convertMiss || romba) ^ convertCMP ^ convertRC ^ convertSD ^ convertXml ^ extsplit ^ generate ^
genall ^ hashsplit ^ import ^ listsrc ^ listsys ^ (merge || diff) ^ rem ^ stats ^ trim))
{
logger.Error("Only one feature switch is allowed at a time");
Build.Help();
logger.Close();
return;
@@ -352,6 +353,7 @@ namespace SabreTools
if (inputs.Count == 0 && ((convertMiss || romba) || convertCMP || convertRC || convertSD
|| convertXml || extsplit || hashsplit || import || (merge || diff) || stats || trim))
{
logger.Error("This feature requires at least one input");
Build.Help();
logger.Close();
return;