[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

@@ -25,8 +25,13 @@ namespace SabreTools
/// <param name="args">String array representing command line parameters</param>
static void Main(string[] args)
{
// If output is being redirected, don't allow clear screens
if (!Console.IsOutputRedirected)
{
Console.Clear();
}
// Perform initial setup and verification
Console.Clear();
logger = new Logger(true, "headerer.log");
logger.Start();
DBTools.EnsureDatabase(_dbName, _connectionString);