121 print("Usage:") |
121 print("Usage:") |
122 if sys.platform == "darwin": |
122 if sys.platform == "darwin": |
123 print( |
123 print( |
124 " {0} [-chvxz] [-a dir] [-b dir] [-d dir] [-f file] [-i dir]" |
124 " {0} [-chvxz] [-a dir] [-b dir] [-d dir] [-f file] [-i dir]" |
125 " [-m name] [-n path] [-p python] [--help] [--no-apis]" |
125 " [-m name] [-n path] [-p python] [--help] [--no-apis]" |
126 " [--no-info] [--no-tools] [--verbose] [--yes]".format(progName) |
126 " [--no-info] [--with-tools] [--verbose] [--yes]".format(progName) |
127 ) |
127 ) |
128 elif sys.platform.startswith(("win", "cygwin")): |
128 elif sys.platform.startswith(("win", "cygwin")): |
129 print( |
129 print( |
130 " {0} [-chvxz] [-a dir] [-b dir] [-d dir] [-f file]" |
130 " {0} [-chvxz] [-a dir] [-b dir] [-d dir] [-f file]" |
131 " [--clean-desktop] [--help] [--no-apis] [--no-info]" |
131 " [--clean-desktop] [--help] [--no-apis] [--no-info]" |
132 " [--no-tools] [--verbose] [--yes]".format(progName) |
132 " [--with-tools] [--verbose] [--yes]".format(progName) |
133 ) |
133 ) |
134 else: |
134 else: |
135 print( |
135 print( |
136 " {0} [-chvxz] [-a dir] [-b dir] [-d dir] [-f file] [-i dir]" |
136 " {0} [-chvxz] [-a dir] [-b dir] [-d dir] [-f file] [-i dir]" |
137 " [--help] [--no-apis] [--no-info] [--no-tools] [--verbose]" |
137 " [--help] [--no-apis] [--no-info] [--with-tools] [--verbose]" |
138 " [--yes]".format(progName) |
138 " [--yes]".format(progName) |
139 ) |
139 ) |
140 print("where:") |
140 print("where:") |
141 print(" -h, --help display this help message") |
141 print(" -h, --help display this help message") |
142 print(" -a dir where the API files will be installed") |
142 print(" -a dir where the API files will be installed") |
2097 try: |
2097 try: |
2098 if sys.platform.startswith(("win", "cygwin")): |
2098 if sys.platform.startswith(("win", "cygwin")): |
2099 optlist, args = getopt.getopt( |
2099 optlist, args = getopt.getopt( |
2100 argv[1:], |
2100 argv[1:], |
2101 "chvxza:b:d:f:", |
2101 "chvxza:b:d:f:", |
2102 ["help", "no-apis", "no-info", "no-tools", "verbose", "yes"], |
2102 ["clean-desktop", "help", "no-apis", "no-info", "verbose", "with-tools", |
|
2103 "yes"], |
2103 ) |
2104 ) |
2104 elif sys.platform == "darwin": |
2105 elif sys.platform == "darwin": |
2105 optlist, args = getopt.getopt( |
2106 optlist, args = getopt.getopt( |
2106 argv[1:], |
2107 argv[1:], |
2107 "chvxza:b:d:f:i:m:n:p:", |
2108 "chvxza:b:d:f:i:m:n:p:", |
2108 ["help", "no-apis", "no-info", "no-tools", "verbose", "yes"], |
2109 ["help", "no-apis", "no-info", "with-tools", "verbose", "yes"], |
2109 ) |
2110 ) |
2110 else: |
2111 else: |
2111 optlist, args = getopt.getopt( |
2112 optlist, args = getopt.getopt( |
2112 argv[1:], |
2113 argv[1:], |
2113 "chvxza:b:d:f:i:", |
2114 "chvxza:b:d:f:i:", |
2114 ["help", "no-apis", "no-info", "no-tools", "verbose", "yes"], |
2115 ["help", "no-apis", "no-info", "with-tools", "verbose", "yes"], |
2115 ) |
2116 ) |
2116 except getopt.GetoptError as err: |
2117 except getopt.GetoptError as err: |
2117 print(err) |
2118 print(err) |
2118 usage() |
2119 usage() |
2119 |
2120 |