[DATabase] Separate logically disconnected statements

This commit is contained in:
Matt Nadareski
2016-06-10 02:23:37 -07:00
parent a7ce3043d0
commit 9e0a2311cb
2 changed files with 10 additions and 2 deletions

View File

@@ -426,8 +426,16 @@ namespace SabreTools
return;
}
// If more than one switch is enabled or help is set, show the help screen
if (help || !(add ^ extsplit ^ generate ^ genall ^ hashsplit ^ import ^ listsrc ^ listsys ^ (merge || diff) ^
// If help is set, show the help screen
if (help)
{
Build.Help();
_logger.Close();
return;
}
// If more than one switch is enabled, show the help screen
if (!(add ^ extsplit ^ generate ^ genall ^ hashsplit ^ import ^ listsrc ^ listsys ^ (merge || diff) ^
(update || outputCMP || outputRC || outputSD || outputXML || outputMiss || romba) ^ rem ^ stats ^ trim))
{
_logger.Error("Only one feature switch is allowed at a time");