eric6_api.py

changeset 3670
f0cb7579c0b4
parent 3669
ac84ac3c0f05
child 3697
c947a7eaace4
equal deleted inserted replaced
3669:ac84ac3c0f05 3670:f0cb7579c0b4
3 3
4 # Copyright (c) 2003 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> 4 # Copyright (c) 2003 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
5 # 5 #
6 6
7 """ 7 """
8 Eric5 API Generator. 8 Eric6 API Generator.
9 9
10 This is the main Python script of the API generator. It is 10 This is the main Python script of the API generator. It is
11 this script that gets called via the API generation interface. 11 this script that gets called via the API generation interface.
12 This script can be used via the commandline as well. 12 This script can be used via the commandline as well.
13 """ 13 """
35 Function to print some usage information. 35 Function to print some usage information.
36 36
37 It prints a reference of all commandline parameters that may 37 It prints a reference of all commandline parameters that may
38 be used and ends the application. 38 be used and ends the application.
39 """ 39 """
40 print("eric5_api") 40 print("eric6_api")
41 print() 41 print()
42 print("Copyright (c) 2004 - 2014 Detlev Offenbach" 42 print("Copyright (c) 2004 - 2014 Detlev Offenbach"
43 " <detlev@die-offenbachs.de>.") 43 " <detlev@die-offenbachs.de>.")
44 print() 44 print()
45 print("Usage:") 45 print("Usage:")
46 print() 46 print()
47 print(" eric5_api [options] files...") 47 print(" eric6_api [options] files...")
48 print() 48 print()
49 print("where files can be either python modules, package") 49 print("where files can be either python modules, package")
50 print("directories or ordinary directories.") 50 print("directories or ordinary directories.")
51 print() 51 print()
52 print("Options:") 52 print("Options:")
92 def version(): 92 def version():
93 """ 93 """
94 Function to show the version information. 94 Function to show the version information.
95 """ 95 """
96 print( 96 print(
97 """eric5_api {0}\n""" 97 """eric6_api {0}\n"""
98 """\n""" 98 """\n"""
99 """Eric5 API generator.\n""" 99 """Eric6 API generator.\n"""
100 """\n""" 100 """\n"""
101 """Copyright (c) 2004 - 2014 Detlev Offenbach""" 101 """Copyright (c) 2004 - 2014 Detlev Offenbach"""
102 """ <detlev@die-offenbachs.de>\n""" 102 """ <detlev@die-offenbachs.de>\n"""
103 """This is free software; see the LICENSE.GPL3 for copying""" 103 """This is free software; see the LICENSE.GPL3 for copying"""
104 """ conditions.\n""" 104 """ conditions.\n"""
124 "version", ]) 124 "version", ])
125 except getopt.error: 125 except getopt.error:
126 usage() 126 usage()
127 127
128 excludeDirs = ["CVS", ".svn", "_svn", ".ropeproject", "_ropeproject", 128 excludeDirs = ["CVS", ".svn", "_svn", ".ropeproject", "_ropeproject",
129 ".eric5project", "_eric5project", "dist", "build", "doc", 129 ".eric6project", "_eric6project", "dist", "build", "doc",
130 "docs"] 130 "docs"]
131 excludePatterns = [] 131 excludePatterns = []
132 outputFileName = "" 132 outputFileName = ""
133 recursive = False 133 recursive = False
134 basePackage = "" 134 basePackage = ""

eric ide

mercurial