1 module dco.helpInfo;
2 
3 import std.stdio;
4 
5 string strVersion = "v0.1.5";
6 
7 void ShowUsage()
8 {
9 	writeln("
10 dco build tool " ~ strVersion ~ "
11 written by FrankLIKE.
12 Usage:
13 dco [<switches...>] <files...>
14 
15 for example:     
16 	dco 
17 or: dco app.d 
18 
19 (if you build a bigger project ,you can config a local.ini(get by 'dco -ini'),
20 then enter 'dco',ok.)
21 
22 build for dfl2:	 
23     
24     dco  
25 or: dco -gui
26 or: dco *.d -gui
27 			
28 build for other: 
29 
30     dco -lib
31 or: dco *.d -lib
32 or: dco *.d -release
33 or: dco *.d -arg -addlib
34 
35 Switches:
36 -h	   Print help(usage: -h,or -help).
37 -ini       Create the local.ini file for config. 
38 -init      the same to -ini.
39 -copy      Copy new exe or lib to 'windows/bin' or 'lib' Folder. 
40 -release   Build files's Release version(Default version is 'debug').
41 -gui       Make a Windows GUI exe without a console(For Dgui or DFL).
42 -use       Use the Sepetail Lib to create exe with console.
43 -win       Make a Windows GUI exe without a console
44            (For any other: the same to -winexe,-windows).
45 -lib       Build lib files.
46 -all       Build files by args,libs(Default no dfl_debug.lib) in Console.
47 -arg       Build files by args(-de -w -property -X).
48 -addlib    Build files by add libs(user32.lib ole32.lib oleAut32.lib gdi32.lib 
49 	    Comctl32.lib Comdlg32.lib advapi32.lib uuid.lib ws2_32.lib).
50 -m64       Generate 64bit lib or exe.
51 -m32mscoff Generate x86 ms coff lib or exe,and please set some info in sc.ini. 
52 -version	Current version.
53 
54 IgnoreFiles:If you have some files to ignore,please put them in Folder 'ignoreFiles'.
55   ");
56 } 
57 
58 void ShowVersion()
59 {
60 	writeln("dco Current version is " ~ strVersion ~ ", written by FrankLIKE.");
61 }