File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Source/Contrib/DataCollector Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 19
19
using ORTS . Common ;
20
20
using System ;
21
21
using System . Collections . Generic ;
22
+ using System . Diagnostics ;
22
23
using System . IO ;
23
24
using System . Linq ;
24
25
@@ -38,14 +39,19 @@ static void Main(string[] args)
38
39
39
40
static void ShowHelp ( )
40
41
{
41
- Console . WriteLine ( "Open Rails Data Collector utility" ) ;
42
+ var version = FileVersionInfo . GetVersionInfo ( typeof ( Program ) . Assembly . Location ) ;
43
+ Console . WriteLine ( "{0} {1}" , version . FileDescription , VersionInfo . VersionOrBuild ) ;
42
44
Console . WriteLine ( ) ;
43
- Console . WriteLine ( "{0} [/system | /tile-terrtex PATH [...]]" , Path . GetFileNameWithoutExtension ( AppDomain . CurrentDomain . FriendlyName ) ) ;
45
+ Console . WriteLine ( "Usage:" ) ;
46
+ Console . WriteLine ( " {0} [options] [<PATH> [...]]" , Path . GetFileNameWithoutExtension ( version . FileName ) ) ;
44
47
Console . WriteLine ( ) ;
45
- // "1234567890123456789012345678901234567890123456789012345678901234567890123456789"
46
- Console . WriteLine ( " /system Collects and reports on various system information." ) ;
47
- Console . WriteLine ( " /tile-terrtex Scans the provided PATHs for MSTS tile files (.t) and" ) ;
48
- Console . WriteLine ( " produces a statistical summary of the terrtex used." ) ;
48
+ Console . WriteLine ( "Arguments:" ) ;
49
+ Console . WriteLine ( " <PATH> Directories to scan for specific options" ) ;
50
+ Console . WriteLine ( ) ;
51
+ Console . WriteLine ( "Options:" ) ;
52
+ Console . WriteLine ( " /system Collects and reports on various system information" ) ;
53
+ Console . WriteLine ( " /tile-terrtex Scans the provided PATHs for MSTS tile files (.t) and" ) ;
54
+ Console . WriteLine ( " produces a statistical summary of the terrtex used" ) ;
49
55
}
50
56
51
57
struct TileTerrtexDirectory
You can’t perform that action at this time.
0 commit comments