Skip to content

Commit

Permalink
Merge pull request #686 from twpol/feature/command-line-syntax-4
Browse files Browse the repository at this point in the history
fix: Clean up Data Collector help output to match dotnet-style
  • Loading branch information
cjakeman committed Aug 20, 2022
2 parents a9f8174 + dab3e59 commit b6bbc88
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Source/Contrib/DataCollector/Program.cs
Expand Up @@ -19,6 +19,7 @@
using ORTS.Common;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;

Expand All @@ -38,14 +39,19 @@ static void Main(string[] args)

static void ShowHelp()
{
Console.WriteLine("Open Rails Data Collector utility");
var version = FileVersionInfo.GetVersionInfo(typeof(Program).Assembly.Location);
Console.WriteLine("{0} {1}", version.FileDescription, VersionInfo.VersionOrBuild);
Console.WriteLine();
Console.WriteLine("{0} [/system | /tile-terrtex PATH [...]]", Path.GetFileNameWithoutExtension(AppDomain.CurrentDomain.FriendlyName));
Console.WriteLine("Usage:");
Console.WriteLine(" {0} [options] [<PATH> [...]]", Path.GetFileNameWithoutExtension(version.FileName));
Console.WriteLine();
// "1234567890123456789012345678901234567890123456789012345678901234567890123456789"
Console.WriteLine(" /system Collects and reports on various system information.");
Console.WriteLine(" /tile-terrtex Scans the provided PATHs for MSTS tile files (.t) and");
Console.WriteLine(" produces a statistical summary of the terrtex used.");
Console.WriteLine("Arguments:");
Console.WriteLine(" <PATH> Directories to scan for specific options");
Console.WriteLine();
Console.WriteLine("Options:");
Console.WriteLine(" /system Collects and reports on various system information");
Console.WriteLine(" /tile-terrtex Scans the provided PATHs for MSTS tile files (.t) and");
Console.WriteLine(" produces a statistical summary of the terrtex used");
}

struct TileTerrtexDirectory
Expand Down

0 comments on commit b6bbc88

Please sign in to comment.