File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Source/Contrib/DataValidator Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 2121using System . Diagnostics ;
2222using System . IO ;
2323using System . Linq ;
24+ using ORTS . Common ;
2425
2526namespace DataValidator
2627{
@@ -38,12 +39,18 @@ static void Main(string[] args)
3839
3940 static void ShowHelp ( )
4041 {
41- Console . WriteLine ( "Open Rails Data Validator 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} [/verbose] PATH [...]" , Path . GetFileNameWithoutExtension ( AppDomain . CurrentDomain . FriendlyName ) ) ;
45+ Console . WriteLine ( "Usage:" ) ;
46+ Console . WriteLine ( " {0} [options] <FILE> [...]" , Path . GetFileNameWithoutExtension ( version . FileName ) ) ;
47+ Console . WriteLine ( ) ;
48+ Console . WriteLine ( "Arguments:" ) ;
49+ Console . WriteLine ( " <FILE> Data files to validate; may contain wildcards" ) ;
50+ Console . WriteLine ( ) ;
51+ Console . WriteLine ( "Options:" ) ;
52+ Console . WriteLine ( " /verbose Displays all expected/valid values in addition to any errors" ) ;
4453 Console . WriteLine ( ) ;
45- // "1234567890123456789012345678901234567890123456789012345678901234567890123456789"
46- Console . WriteLine ( " /verbose Displays all expected/valid values in addition to any errors." ) ;
4754 }
4855
4956 static void Validate ( bool verbose , IEnumerable < string > files )
You can’t perform that action at this time.
0 commit comments