[Epydoc-commits] SF.net SVN: epydoc: [1726] trunk/epydoc/src/epydoc/cli.py
Brought to you by:
edloper
From: <ed...@us...> - 2008-02-16 04:49:51
|
Revision: 1726 http://epydoc.svn.sourceforge.net/epydoc/?rev=1726&view=rev Author: edloper Date: 2008-02-15 20:49:50 -0800 (Fri, 15 Feb 2008) Log Message: ----------- - Display more useful error message when '--graph' gets something unexpected. Modified Paths: -------------- trunk/epydoc/src/epydoc/cli.py Modified: trunk/epydoc/src/epydoc/cli.py =================================================================== --- trunk/epydoc/src/epydoc/cli.py 2008-02-16 04:49:21 UTC (rev 1725) +++ trunk/epydoc/src/epydoc/cli.py 2008-02-16 04:49:50 UTC (rev 1726) @@ -512,7 +512,8 @@ options.graphs = [g for g in GRAPH_TYPES if g != 'callgraph'] break elif graph_type not in GRAPH_TYPES: - optparser.error("Invalid graph type %s." % graph_type) + optparser.error("Invalid graph type %s. Expected one of: %s." % + (graph_type, ', '.join(GRAPH_TYPES + ('all',)))) # Calculate verbosity. verbosity = getattr(options, 'verbosity', 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |