@@ -17,27 +17,28 @@ internal class ShowUsageBehavior : AppBehavior
1717 {
1818 public override int Execute ( )
1919 {
20- Output . WriteLine ( $ "1Script Execution Engine. Version { Assembly . GetExecutingAssembly ( ) . GetName ( ) . Version } ") ;
21- Output . WriteLine ( ) ;
22- Output . WriteLine ( "Usage:" ) ;
23- Output . WriteLine ( ) ;
24- Output . WriteLine ( "I. Script execution: oscript.exe <script_path> [script arguments..]" ) ;
25- Output . WriteLine ( ) ;
26- Output . WriteLine ( "II. Special mode: oscript.exe <mode> <script_path> [script arguments..]" ) ;
27- Output . WriteLine ( "Mode can be one of these:" ) ;
28- Output . WriteLine ( $ " { "-measure" , - 12 } measures execution time") ;
29- Output . WriteLine ( $ " { "-compile" , - 12 } shows compiled module without execution") ;
30- Output . WriteLine ( $ " { "-check [-env=<entrypoint-file>]" , - 12 } provides syntax check") ;
31- Output . WriteLine ( $ " { "-check -cgi" , - 12 } provides syntax check in CGI-mode") ;
32- Output . WriteLine ( ) ;
33- Output . WriteLine ( " -encoding=<encoding-name> set output encoding" ) ;
34- Output . WriteLine ( " -codestat=<filename> write code statistics" ) ;
35- Output . WriteLine ( ) ;
36- Output . WriteLine ( "III. Build standalone executable: oscript.exe -make <script_path> <output_exe>" ) ;
37- Output . WriteLine ( " Builds a standalone executable module based on script specified" ) ;
38- Output . WriteLine ( ) ;
39- Output . WriteLine ( "IV. Run as CGI application: oscript.exe -cgi <script_path> [script arguments..]" ) ;
40- Output . WriteLine ( " Runs as CGI application under HTTP-server (Apache/Nginx/IIS/etc...)" ) ;
20+ Output . WriteLine ( $ "1Script Execution Engine. Version { Assembly . GetExecutingAssembly ( ) . GetName ( ) . Version } ") ;
21+ Output . WriteLine ( ) ;
22+ Output . WriteLine ( "Usage:" ) ;
23+ Output . WriteLine ( ) ;
24+ Output . WriteLine ( "I. Script execution: oscript.exe <script_path> [script arguments..]" ) ;
25+ Output . WriteLine ( ) ;
26+ Output . WriteLine ( "II. Special mode: oscript.exe <mode> <script_path> [script arguments..]" ) ;
27+ Output . WriteLine ( "Mode can be one of these:" ) ;
28+ Output . WriteLine ( $ " { "-measure" , - 12 } measures execution time") ;
29+ Output . WriteLine ( $ " { "-compile" , - 12 } shows compiled module without execution") ;
30+ Output . WriteLine ( $ " { "-check [-env=<entrypoint-file>]" , - 12 } provides syntax check") ;
31+ Output . WriteLine ( $ " { "-check -cgi" , - 12 } provides syntax check in CGI-mode") ;
32+ Output . WriteLine ( $ " { "-version" , - 12 } output version string") ;
33+ Output . WriteLine ( ) ;
34+ Output . WriteLine ( " -encoding=<encoding-name> set output encoding" ) ;
35+ Output . WriteLine ( " -codestat=<filename> write code statistics" ) ;
36+ Output . WriteLine ( ) ;
37+ Output . WriteLine ( "III. Build standalone executable: oscript.exe -make <script_path> <output_exe>" ) ;
38+ Output . WriteLine ( " Builds a standalone executable module based on script specified" ) ;
39+ Output . WriteLine ( ) ;
40+ Output . WriteLine ( "IV. Run as CGI application: oscript.exe -cgi <script_path> [script arguments..]" ) ;
41+ Output . WriteLine ( " Runs as CGI application under HTTP-server (Apache/Nginx/IIS/etc...)" ) ;
4142
4243 return 0 ;
4344 }
0 commit comments