mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DATabse] Show help instead of menu if redirecting
This commit is contained in:
@@ -62,7 +62,14 @@ namespace SabreTools
|
||||
// If there's no arguments, show the menu
|
||||
if (args.Length == 0)
|
||||
{
|
||||
ShowMainMenu();
|
||||
if (!Console.IsOutputRedirected)
|
||||
{
|
||||
ShowMainMenu();
|
||||
}
|
||||
else
|
||||
{
|
||||
Build.Help();
|
||||
}
|
||||
_logger.Close();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user