mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SabreTools] Show help if no feature flags are inputted
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user