+2005-10-10 John Luke <john.luke@gmail.com>
+
+ * monop.cs: add PrintRefs and use it if the
+ option is set
+ * options.cs: add PrintRefs option to see the
+ assemblies referenced by an assembly
+
2005-10-10 John Luke <john.luke@gmail.com>
* monop.cs: don't print obsolete types if the
return GetType (tname, false);
}
+ static void PrintRefs (string assembly)
+ {
+ Assembly a = GetAssembly (assembly, true);
+ foreach (AssemblyName an in a.GetReferencedAssemblies ())
+ Console.WriteLine (an);
+ }
+
static void PrintTypes (string assembly, bool show_private, bool filter_obsolete)
{
Assembly a = GetAssembly (assembly, true);
assembly = options.AssemblyReference;
if (options.Type == null) {
- PrintTypes (assembly, options.ShowPrivate, options.FilterObsolete);
+ if (options.PrintRefs)
+ PrintRefs (assembly);
+ else
+ PrintTypes (assembly, options.ShowPrivate, options.FilterObsolete);
return;
}
}
{
public bool DeclaredOnly = false;
public bool FilterObsolete = false;
+ public bool PrintRefs = false;
public bool Search = false;
public bool ShowPrivate = false;
public string AssemblyReference = null;
case "--private":
ShowPrivate = true;
break;
+ case "--refs":
+ PrintRefs = true;
+ break;
case "-s":
case "-k":
case "--search":