]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Make protected API documented by default
authorDidier 'Ptitjes <ptitjes@free.fr>
Fri, 16 Oct 2009 17:13:23 +0000 (19:13 +0200)
committerDidier 'Ptitjes <ptitjes@free.fr>
Fri, 16 Oct 2009 17:13:23 +0000 (19:13 +0200)
src/valadoc/valadoc.vala

index 17dcaa6ba04b8dbc8290a47cda1d459603fd159a..6d95ea1218aafcbc1e136f8f60f2e1c6964bd164 100755 (executable)
@@ -32,7 +32,7 @@ public class ValaDoc : Object {
        private static string pkg_name = null;
 
        private static bool add_inherited = false;
-       private static bool _protected = false;
+       private static bool _protected = true;
        private static bool _internal = false;
        private static bool with_deps = false;
        private static bool _private = false;
@@ -76,7 +76,7 @@ public class ValaDoc : Object {
                { "deps", 0, 0, OptionArg.NONE, ref with_deps, "Adds packages to the documentation", null },
                { "doclet", 0, 0, OptionArg.STRING, ref pluginpath, "plugin", "Name of an included doclet or path to custom doclet" },
 
-               { "protected", 0, 0, OptionArg.NONE, ref _protected, "Adds protected elements to documentation", null },
+               { "no-protected", 0, OptionFlags.REVERSE, OptionArg.NONE, ref _protected, "Removes protected elements from documentation", null },
                { "internal", 0, 0, OptionArg.NONE, ref _internal, "Adds internal elements to documentation", null },
                { "private", 0, 0, OptionArg.NONE, ref _private, "Adds private elements to documentation", null },
 //             { "inherit", 0, 0, OptionArg.NONE, ref add_inherited, "Adds inherited elements to a class", null },