mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ALL] If output is redirected, don't clear the screen first
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user