+2004-12-24 John Luke <john.luke@gmail.com>
+
+ * monop.cs: sort the types when printing an assembly
+ handle -r:~/foo.dll by substituting for $HOME
+ * TypeSorter.cs: IComparer to sort types by name
+
2004-12-25 Ben Maurer <bmaurer@ximian.com>
* monop.cs, outline.cs, monop-completion.sh: Add MIT/X11 License.
----
* handle explicit vs. implicit interfaces
- * handle ~ based paths (ex -r:~/foo.dll)
* improve commandline handling
+ (arguments should be order independent)
{
Assembly a = null;
+ // if -r:~/foo.dll syntax is used the shell misses it
+ if (assembly.StartsWith ("~/"))
+ assembly = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), assembly.Substring (2));
+
try {
// if it exists try to use LoadFrom
if (File.Exists (assembly))
Console.WriteLine ();
Type [] types = a.GetExportedTypes ();
+ Array.Sort (types, new TypeSorter ());
foreach (Type t in types)
Console.WriteLine (t.FullName);