From a82bba5bf433cad9a0fb394bdd8e17ca61e22997 Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Fri, 4 Mar 2016 13:28:39 +0100 Subject: [PATCH] update help text: use correct executable name --- VectoConsole/Program.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/VectoConsole/Program.cs b/VectoConsole/Program.cs index 6890244354..ec83782d57 100644 --- a/VectoConsole/Program.cs +++ b/VectoConsole/Program.cs @@ -54,13 +54,13 @@ namespace VectoConsole private static int _numLines; private static int ProgessCounter { get; set; } - private const string Usage = @"Usage: vecto.exe [-h] [-v] FILE1.vecto [FILE2.vecto ...]"; + private const string Usage = @"Usage: vectocmd.exe [-h] [-v] FILE1.vecto [FILE2.vecto ...]"; private const string Help = @" Commandline Interface for Vecto. Synopsis: - vecto.exe [-h] [-v] FILE1.vecto [FILE2.vecto ...] + vectocmd.exe [-h] [-v] FILE1.vecto [FILE2.vecto ...] Description: FILE1.vecto [FILE2.vecto ...]: A list of vecto-job files (with the @@ -230,9 +230,9 @@ Examples: stopWatch.Stop(); timings.Add("Simulation runs", stopWatch.Elapsed.TotalMilliseconds); - + PrintProgress(_jobContainer.GetProgress(), args.Contains("-t")); - + if (args.Contains("-t")) { PrintTimings(timings); } @@ -247,7 +247,7 @@ Examples: Environment.ExitCode = Environment.ExitCode != 0 ? Environment.ExitCode : 1; } - + Console.ReadKey(); return Environment.ExitCode; @@ -255,7 +255,7 @@ Examples: private static void DisplayWarnings() { - if (WarningMessages.Any()) { + if (WarningMessages.Any()) { Console.ForegroundColor = ConsoleColor.Yellow; foreach (var message in WarningMessages) { Console.Error.WriteLine(message); @@ -307,13 +307,13 @@ Examples: var bar = new string('#', (int)(sumProgress * 100.0 / 2)); Console.WriteLine(@" {2} [{1,-50}] [{0,7:P}]", sumProgress, bar, spinner); - if (WarningMessages.Any()){ + if (WarningMessages.Any()) { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine(@"Warnings: {0,5}", WarningMessages.Count); Console.ResetColor(); } - _numLines +=2; + _numLines += 2; } private static void PrintTimings(Dictionary<string, double> timings) -- GitLab