[SabreTools] Show help if no feature flags are inputted

This commit is contained in:
Matt Nadareski
2017-01-17 22:42:35 -08:00
parent 2282228e26
commit d2ebd66787

View File

@@ -981,6 +981,14 @@ namespace SabreTools
return;
}
// If none of the feature flags is enabled, show the help screen
if (!(datFromDir | extract | restore | sort | splitByExt | splitByHash | splitByLevel | splitByType | stats | update | verify))
{
_logger.Error("At least one feature switch must be enabled");
_logger.Close();
return;
}
// If more than one switch is enabled, show the help screen
if (!(datFromDir ^ extract ^ restore ^ sort ^ splitByExt ^ splitByHash ^ splitByLevel ^ splitByType ^ stats ^ update ^ verify))
{