1 // Mono.Util.CorCompare.CorCompareDriver
4 // Nick Drochak (ndrochak@gol.com)
6 // (C) 2001-2002 Nick Drochak
11 namespace Mono
.Util
.CorCompare
{
14 /// Handles command line arguments, and generates appropriate report(s)
15 /// based on those arguments
19 /// created on - 2/20/2002 10:43:57 PM
21 class CorCompareDriver
23 public static void Main(string[] args
) {
24 // make sure we were called with the proper usage
25 if (args
.Length
< 1) {
26 Console
.WriteLine("Usage: CorCompare [-t][-n][-x outfile][-ms assembly][-f friendly_name] assembly_to_compare");
32 string strMono
= args
[args
.Length
- 1];
34 string strFriendly
= null;
36 for (int i
= 0; i
< args
.Length
-1; i
++) {
37 if (args
[i
] == "-t") {
40 if (args
[i
] == "-n") {
42 if (args
[i
] == "-x") {
45 if (args
[i
] == "-ms") {
48 if (args
[i
] == "-f") {
49 strFriendly
= args
[++i
];
54 strMS
= Path
.GetFileNameWithoutExtension (strMono
);
56 if (strFriendly
== null)
60 strXML
= strFriendly
+ ".xml";
62 ToDoAssembly td
= ToDoAssembly
.Load (strMono
, strFriendly
, strMS
);
65 Console
.WriteLine(td
.CreateClassListReport());
68 td
.CreateXMLReport(strXML
);