@@ -38,6 +38,8 @@ enum ScriptLanguage
3838 VBScript ,
3939 }
4040
41+ private const string VERSION = "v1.0.3" ;
42+
4143 static object BuildLoaderDelegate ( byte [ ] assembly )
4244 {
4345 // Create a bound delegate which will load our assembly from a byte array.
@@ -169,7 +171,7 @@ static void Main(string[] args)
169171 { "d" , "Enable debug output from script" , v => enable_debug = v != null } ,
170172 { "l|lang=" , String . Format ( "Specify script language to use ({0})" ,
171173 GetEnumString ( typeof ( ScriptLanguage ) ) ) , v => ParseEnum ( v , out language ) } ,
172- { "v" , "Build a VBA file (use -lang switch)." , v => language = ScriptLanguage . VBA } ,
174+ { "v" , "Build a VBA file (deprecated, use -lang switch)." , v => language = ScriptLanguage . VBA } ,
173175 { "ver=" , String . Format ( "Specify .NET version to use ({0})" ,
174176 GetEnumString ( typeof ( RuntimeVersion ) ) ) , v => ParseEnum ( v , out version ) } ,
175177 { "o=" , "Specify output file (default is stdout)." , v => output_file = v } ,
@@ -181,8 +183,9 @@ static void Main(string[] args)
181183 string assembly_path = opts . Parse ( args ) . FirstOrDefault ( ) ;
182184 if ( ! File . Exists ( assembly_path ) || show_help )
183185 {
184- Console . Error . WriteLine ( @"Usage: DotNetToJScript [options] path\to\asm" ) ;
186+ Console . Error . WriteLine ( @"Usage: DotNetToJScript {0} [options] path\to\asm" , VERSION ) ;
185187 Console . Error . WriteLine ( "Copyright (C) James Forshaw 2017. Licensed under GPLv3." ) ;
188+ Console . Error . WriteLine ( "Source code at https://github.com/tyranid/DotNetToJScript" ) ;
186189 Console . Error . WriteLine ( "Options" ) ;
187190 opts . WriteOptionDescriptions ( Console . Error ) ;
188191 Environment . Exit ( 1 ) ;
0 commit comments