Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit a82bba5b authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

update help text: use correct executable name

parent 4cd916ac
No related branches found
No related tags found
No related merge requests found
...@@ -54,13 +54,13 @@ namespace VectoConsole ...@@ -54,13 +54,13 @@ namespace VectoConsole
private static int _numLines; private static int _numLines;
private static int ProgessCounter { get; set; } 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 = @" private const string Help = @"
Commandline Interface for Vecto. Commandline Interface for Vecto.
Synopsis: Synopsis:
vecto.exe [-h] [-v] FILE1.vecto [FILE2.vecto ...] vectocmd.exe [-h] [-v] FILE1.vecto [FILE2.vecto ...]
Description: Description:
FILE1.vecto [FILE2.vecto ...]: A list of vecto-job files (with the FILE1.vecto [FILE2.vecto ...]: A list of vecto-job files (with the
...@@ -230,9 +230,9 @@ Examples: ...@@ -230,9 +230,9 @@ Examples:
stopWatch.Stop(); stopWatch.Stop();
timings.Add("Simulation runs", stopWatch.Elapsed.TotalMilliseconds); timings.Add("Simulation runs", stopWatch.Elapsed.TotalMilliseconds);
PrintProgress(_jobContainer.GetProgress(), args.Contains("-t")); PrintProgress(_jobContainer.GetProgress(), args.Contains("-t"));
if (args.Contains("-t")) { if (args.Contains("-t")) {
PrintTimings(timings); PrintTimings(timings);
} }
...@@ -247,7 +247,7 @@ Examples: ...@@ -247,7 +247,7 @@ Examples:
Environment.ExitCode = Environment.ExitCode != 0 ? Environment.ExitCode : 1; Environment.ExitCode = Environment.ExitCode != 0 ? Environment.ExitCode : 1;
} }
Console.ReadKey(); Console.ReadKey();
return Environment.ExitCode; return Environment.ExitCode;
...@@ -255,7 +255,7 @@ Examples: ...@@ -255,7 +255,7 @@ Examples:
private static void DisplayWarnings() private static void DisplayWarnings()
{ {
if (WarningMessages.Any()) { if (WarningMessages.Any()) {
Console.ForegroundColor = ConsoleColor.Yellow; Console.ForegroundColor = ConsoleColor.Yellow;
foreach (var message in WarningMessages) { foreach (var message in WarningMessages) {
Console.Error.WriteLine(message); Console.Error.WriteLine(message);
...@@ -307,13 +307,13 @@ Examples: ...@@ -307,13 +307,13 @@ Examples:
var bar = new string('#', (int)(sumProgress * 100.0 / 2)); var bar = new string('#', (int)(sumProgress * 100.0 / 2));
Console.WriteLine(@" {2} [{1,-50}] [{0,7:P}]", sumProgress, bar, spinner); Console.WriteLine(@" {2} [{1,-50}] [{0,7:P}]", sumProgress, bar, spinner);
if (WarningMessages.Any()){ if (WarningMessages.Any()) {
Console.ForegroundColor = ConsoleColor.Yellow; Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine(@"Warnings: {0,5}", WarningMessages.Count); Console.WriteLine(@"Warnings: {0,5}", WarningMessages.Count);
Console.ResetColor(); Console.ResetColor();
} }
_numLines +=2; _numLines += 2;
} }
private static void PrintTimings(Dictionary<string, double> timings) private static void PrintTimings(Dictionary<string, double> timings)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment