Fixed an issue causing a wrong help text for eric5_api. 5_2_x

Tue, 21 Aug 2012 16:48:47 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 21 Aug 2012 16:48:47 +0200
branch
5_2_x
changeset 2009
837dbb455873
parent 2004
cd8050131d24
child 2011
2f37498455c9

Fixed an issue causing a wrong help text for eric5_api.
(grafted from 1ed291dbd2d564e04cb60b986633a87a002aadc1)

eric5_api.py file | annotate | diff | comparison | revisions
--- a/eric5_api.py	Sun Aug 12 13:50:18 2012 +0200
+++ b/eric5_api.py	Tue Aug 21 16:48:47 2012 +0200
@@ -57,6 +57,10 @@
     print("  -l language or --language=language")
     print("        Generate an API file for the given programming language.")
     print("        Supported programming languages are:")
+    for lang in sorted(DocumentationTools.supportedExtensionsDictForApis.keys()):
+        print("            * {0}".format(lang))
+    print("        The default is 'Python3'.")
+    print("        This option may be repeated multiple times.")
     print("  -o filename or --output=filename")
     print("        Write the API information to the named file. A '%L' placeholder")
     print("        is replaced by the language of the API file (see --language).")
@@ -72,10 +76,6 @@
     print("  -x directory or --exclude=directory")
     print("        Specify a directory basename to be excluded.")
     print("        This option may be repeated multiple times.")
-    for lang in sorted(DocumentationTools.supportedExtensionsDictForApis.keys()):
-        print("            * {0}".format(lang))
-    print("        The default is 'Python3'.")
-    print("        This option may be repeated multiple times.")
     sys.exit(1)
 
 

eric ide

mercurial