From afd31a6c9ff8171ec695ac4e44c23bccfe661341 Mon Sep 17 00:00:00 2001 From: Emile Anclin Date: Wed, 3 Sep 2008 15:55:43 +0200 Subject: add examples to manpage --- man/pyreverse.1 | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) (limited to 'man') diff --git a/man/pyreverse.1 b/man/pyreverse.1 index 68450b8..f28dd9f 100644 --- a/man/pyreverse.1 +++ b/man/pyreverse.1 @@ -35,7 +35,7 @@ and vcg). (For now, the 'xmi' and 'tests' commands are not under developpement.) 'PUB_ONLY' filter all non public attributes (default) 'ALL' no filter 'SPECIAL' filter Python special functions except constructor - 'OTHER' filter protected and private attributes + 'OTHER' filter protected and private attributes [currentt: PUB_ONLY] .IP "-d, --diadefs=" create diagram according to the diagrams definitions in @@ -46,21 +46,25 @@ and vcg). (For now, the 'xmi' and 'tests' commands are not under developpement.) (i.e. '-ASmy' ). .IP -a , --show-ancestors= - show generations of ancestor classes not in + show generations of ancestor classes not in .IP -A, --all-ancestors=[yn] - show all ancestors off all classes in [current: none] + show all ancestors off all classes in [current: none] .IP -s , --show-associated= - show associated classes. =1 will only take classes - directly related to the classes in the project, while =2 - will also take all classes related to those fecthed by=1. + show associated classes. =1 will only take classes + directly related to the classes in the project, while =2 + will also take all classes related to those fecthed by=1. .IP -S, --all-associated=[yn] - show recursively all associated off all associated classes [current: none] + show recursively all associated off all associated classes [current: none] .IP "-b, --builtin" include builtin objects in representation of classes [current: False] .IP "-m [yn], --module-names=[yn]" - include module name in representation of classes. This will include full module path in the class name. [current: none] + include module name in representation of classes. This will include full + module path in the class name. [current: none] +.IP "-k, --only-classnames" + don't show attributes and methods in the class boxes; + this disables -f values [current: False] .SH PYREVERSE DIAGRAM If no -c and no --diadefs option specified, @@ -77,6 +81,25 @@ are all formats that dot can produce and .B vcg. [default: dot] +.SH EXAMPLES + Here are some examples for command line options : + +.IP "pyreverse diagram -a1 -s1 -m" + + -a1 -s1 will include one level of ancestor and associated classes in the + diagram of the modules, while -m will show the full module + path of each class. You can use the same way the +.B -a, -s, -A, -S +options. + Note that on class diagrams (using +.B -c +) -a and -s will rather reduce than enlarge your diagram. + +.IP "pyreverse diagram mod/foo.py mod/fee.py -k" + + This is interesting if the diagram for =mod is too complicated: + you can show only the class names (no attributes or methods, option -k); + or take only the modules you are interested in (here fee.py and foo.py). .SH REQUIRES Python -- cgit v1.2.1