From 83c3264c258f4780dcb9a1458abf20e0de827a8b Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 17 Feb 2021 14:53:48 -0800 Subject: [PATCH] Better log line and stopwatch --- SabreTools/Features/Batch.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SabreTools/Features/Batch.cs b/SabreTools/Features/Batch.cs index 84541453..fa2e2bc4 100644 --- a/SabreTools/Features/Batch.cs +++ b/SabreTools/Features/Batch.cs @@ -11,6 +11,7 @@ using SabreTools.DatTools; using SabreTools.Filtering; using SabreTools.Help; using SabreTools.IO; +using SabreTools.Logging; namespace SabreTools.Features { @@ -57,7 +58,9 @@ Reset the internal state: reset();"; // Try to read each input as a batch run file foreach (string path in Inputs) { + InternalStopwatch watch = new InternalStopwatch($"Processing '{path}'..."); ProcessScript(path); + watch.Stop(); } } @@ -99,6 +102,7 @@ Reset the internal state: reset();"; if (command == null) { logger.User($"Could not process {path} due to the following line: {line}"); + logger.User($"Please see the help text for more details about possible commands"); break; }