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 1919using ORTS . Common ;
2020using System ;
2121using System . Collections . Generic ;
22+ using System . Diagnostics ;
2223using System . IO ;
2324using System . Linq ;
2425
@@ -38,14 +39,19 @@ static void Main(string[] args)
3839
3940 static void ShowHelp ( )
4041 {
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 ) ;
4244 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 ) ) ;
4447 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" ) ;
4955 }
5056
5157 struct TileTerrtexDirectory
You can’t perform that action at this time.
0 commit comments