[ALL] If output is redirected, don't clear the screen first

This commit is contained in:
Matt Nadareski
2016-06-09 23:35:12 -07:00
parent 905f11758a
commit 5b3efe4609
5 changed files with 31 additions and 9 deletions

View File

@@ -67,7 +67,11 @@ namespace SabreTools
/// <param name="args">String array representing command line parameters</param>
public static void Main(string[] args)
{
Console.Clear();
// If output is being redirected, don't allow clear screens
if (!Console.IsOutputRedirected)
{
Console.Clear();
}
// Credits take precidence over all
if ((new List<string>(args)).Contains("--credits"))