2004-08-15 John Luke <john.luke@gmail.com>
[mono.git] / mcs / tools / monop / monop.cs
index 5f6169ab80967b776be803a30aaafcd01de6fbf3..f7e20996b97cffbf2ea7d1dba9a5eff9ea5ed4d9 100644 (file)
@@ -177,6 +177,7 @@ class MonoP {
                PrintUsage ();
                Console.WriteLine ("");
                Console.WriteLine ("options:");
+               Console.WriteLine ("\t--declared-only,-d\tOnly show members declared in the Type");
                Console.WriteLine ("\t--help,-h\t\tShow this information");
                Console.WriteLine ("\t--private,-p\t\tShow private members");
        }
@@ -216,6 +217,11 @@ class MonoP {
                                i++;
                }
 
+               if (args [i] == "--declared-only" || args [i] == "-d") {
+                               default_flags |= BindingFlags.DeclaredOnly;
+                               i++;
+               }
+
                if (args.Length < i + 1) {
                        PrintUsage ();
                        return;