diff options
-rw-r--r-- | grapher.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -30,6 +30,9 @@ parser.add_option("-f", "--force", dest = "forces", action = "append", default = [], help = "classes matching this regexp will be forced into \ display") +parser.add_option("--all-methods", dest = "all_methods", action = "store_true", + default = False, + help = "show all methods") (options, args) = parser.parse_args () @@ -40,10 +43,12 @@ includes = reduce (lambda x, y: x + y, forces = reduce (lambda x, y: x + y, map (lambda s: s.split(","), options.forces), []) prefix = options.prefix +all_methods = options.all_methods print "Settings" print "--------" print "Prefix :", prefix +print "Show all methods :", all_methods print "Excludes :", excludes print "Includes :", includes print "Forces :", forces @@ -120,7 +125,7 @@ for doc in docs: vars_dict[var_name].append ((var_var_name, get_var_type (var_var))) elif type (var_var.value) in (epydoc.apidoc.RoutineDoc, epydoc.apidoc.StaticMethodDoc): - if "@doc" in str (var_var.value.docstring): + if all_methods or "@doc" in str (var_var.value.docstring): methods_dict[var_name].append (str (var_var.name)) else: print type (var_var.value) |