[Epydoc-commits] SF.net SVN: epydoc: [1157] trunk/epydoc/src/epydoc/cli.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-04-04 04:45:36
|
Revision: 1157 Author: edloper Date: 2006-04-03 21:45:28 -0700 (Mon, 03 Apr 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1157&view=rev Log Message: ----------- - Check that all graph types specified are valid. - Added '--graph all' option to add all graphs. Modified Paths: -------------- trunk/epydoc/src/epydoc/cli.py Modified: trunk/epydoc/src/epydoc/cli.py =================================================================== --- trunk/epydoc/src/epydoc/cli.py 2006-04-04 02:30:57 UTC (rev 1156) +++ trunk/epydoc/src/epydoc/cli.py 2006-04-04 04:45:28 UTC (rev 1157) @@ -190,7 +190,7 @@ "If this executable is not on the path, then use --dotpath " "to specify its location. This option may be repeated to " "include multiple graph types in the output. GRAPHTYPE" - "should be one of: %s." % ', '.join(GRAPH_TYPES))) + "should be one of: all, %s." % ', '.join(GRAPH_TYPES))) # Add the option groups. optparser.add_option_group(action_group) @@ -235,6 +235,13 @@ if options.action == 'text' and len(names) > 1: optparser.error("--text option takes only one name.") + for graph_type in options.graphs: + if graph_type.lower() == 'all': + options.graphs = GRAPH_TYPES + break + elif graph_type not in GRAPH_TYPES: + optparser.error("Invalid graph type %s." % graph_type) + # Calculate verbosity. options.verbosity = options.verbose - options.quiet This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |