|
21 | 21 | using System.IO; |
22 | 22 | using System.Linq; |
23 | 23 | using Orts.Common; |
24 | | -using Orts.Parsers.Msts; |
| 24 | +using ORTS.Common; |
25 | 25 |
|
26 | 26 | namespace ContentChecker |
27 | 27 | { |
@@ -77,21 +77,25 @@ static bool OptionsContain(string[] args, IEnumerable<string> optionNames) { |
77 | 77 | /// </summary> |
78 | 78 | static void ShowHelp() |
79 | 79 | { |
80 | | - Console.WriteLine("Open Rails File Loader and Cross-check utility"); |
| 80 | + var version = FileVersionInfo.GetVersionInfo(typeof(Program).Assembly.Location); |
| 81 | + Console.WriteLine("{0} {1}", version.FileDescription, VersionInfo.VersionOrBuild); |
81 | 82 | Console.WriteLine(); |
82 | | - Console.WriteLine("{0} [<option> ...] FILE [...]", Path.GetFileNameWithoutExtension(AppDomain.CurrentDomain.FriendlyName)); |
| 83 | + Console.WriteLine("Usage:"); |
| 84 | + Console.WriteLine(" {0} [options] <FILE> [...]", Path.GetFileNameWithoutExtension(version.FileName)); |
| 85 | + Console.WriteLine(); |
| 86 | + Console.WriteLine("Arguments:"); |
| 87 | + Console.WriteLine(" <FILE> Data files to check; may contain wildcards"); |
83 | 88 | Console.WriteLine(); |
84 | | - // "1234567890123456789012345678901234567890123456789012345678901234567890123456789" |
85 | 89 | Console.WriteLine("Options:"); |
86 | | - Console.WriteLine(" /h, /help Show help."); |
87 | | - Console.WriteLine(" /v, /verbose Displays all expected/valid values in addition to any errors"); |
88 | | - Console.WriteLine(" /d, /dependent Also load dependent files."); |
| 90 | + Console.WriteLine(" /h, /help Show help."); |
| 91 | + Console.WriteLine(" /v, /verbose Displays all expected/valid values in addition to any errors"); |
| 92 | + Console.WriteLine(" /d, /dependent Also load dependent files"); |
89 | 93 | Console.WriteLine(""); |
90 | 94 | Console.WriteLine("Partially implemented options:"); |
91 | | - Console.WriteLine(" /r, /referenced Also load files that are directly referenced"); |
92 | | - Console.WriteLine(" This implies /d"); |
93 | | - Console.WriteLine(" /a, /all Load all related files"); |
94 | | - Console.WriteLine(" This implies /d and /r"); |
| 95 | + Console.WriteLine(" /r, /referenced Also load files that are directly referenced"); |
| 96 | + Console.WriteLine(" This implies /d"); |
| 97 | + Console.WriteLine(" /a, /all Load all related files"); |
| 98 | + Console.WriteLine(" This implies /d and /r"); |
95 | 99 | Console.WriteLine(""); |
96 | 100 | Console.WriteLine("This utility needs as input one or more files."); |
97 | 101 | Console.WriteLine("You can either give a file with a full path or with a relative path."); |
|
0 commit comments