Skip to content

Commit

Permalink
Merge pull request #687 from twpol/feature/command-line-syntax-5
Browse files Browse the repository at this point in the history
fix: Clean up Content Checker help output to match dotnet-style
  • Loading branch information
twpol committed Aug 15, 2022
2 parents 712b9e5 + 2cbce1f commit 471115c
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions Source/ContentChecker/Program.cs
Expand Up @@ -21,7 +21,7 @@
using System.IO;
using System.Linq;
using Orts.Common;
using Orts.Parsers.Msts;
using ORTS.Common;

namespace ContentChecker
{
Expand Down Expand Up @@ -77,21 +77,25 @@ static void Main(string[] args)
/// </summary>
static void ShowHelp()
{
Console.WriteLine("Open Rails File Loader and Cross-check utility");
var version = FileVersionInfo.GetVersionInfo(typeof(Program).Assembly.Location);
Console.WriteLine("{0} {1}", version.FileDescription, VersionInfo.VersionOrBuild);
Console.WriteLine();
Console.WriteLine("{0} [<option> ...] FILE [...]", Path.GetFileNameWithoutExtension(AppDomain.CurrentDomain.FriendlyName));
Console.WriteLine("Usage:");
Console.WriteLine(" {0} [options] <FILE> [...]", Path.GetFileNameWithoutExtension(version.FileName));
Console.WriteLine();
Console.WriteLine("Arguments:");
Console.WriteLine(" <FILE> Data files to check; may contain wildcards");
Console.WriteLine();
// "1234567890123456789012345678901234567890123456789012345678901234567890123456789"
Console.WriteLine("Options:");
Console.WriteLine(" /h, /help Show help.");
Console.WriteLine(" /v, /verbose Displays all expected/valid values in addition to any errors");
Console.WriteLine(" /d, /dependent Also load dependent files.");
Console.WriteLine(" /h, /help Show help.");
Console.WriteLine(" /v, /verbose Displays all expected/valid values in addition to any errors");
Console.WriteLine(" /d, /dependent Also load dependent files");
Console.WriteLine("");
Console.WriteLine("Partially implemented options:");
Console.WriteLine(" /r, /referenced Also load files that are directly referenced");
Console.WriteLine(" This implies /d");
Console.WriteLine(" /a, /all Load all related files");
Console.WriteLine(" This implies /d and /r");
Console.WriteLine(" /r, /referenced Also load files that are directly referenced");
Console.WriteLine(" This implies /d");
Console.WriteLine(" /a, /all Load all related files");
Console.WriteLine(" This implies /d and /r");
Console.WriteLine("");
Console.WriteLine("This utility needs as input one or more files.");
Console.WriteLine("You can either give a file with a full path or with a relative path.");
Expand Down

0 comments on commit 471115c

Please sign in to comment.