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") |
2094 try: |
2094 try: |
2095 if sys.platform.startswith(("win", "cygwin")): |
2095 if sys.platform.startswith(("win", "cygwin")): |
2096 optlist, args = getopt.getopt( |
2096 optlist, args = getopt.getopt( |
2097 argv[1:], |
2097 argv[1:], |
2098 "chvxza:b:d:f:", |
2098 "chvxza:b:d:f:", |
2099 ["help", "no-apis", "no-info", "no-tools", "verbose", "yes"], |
2099 ["clean-desktop", "help", "no-apis", "no-info", "verbose", "with-tools", |
|
2100 "yes"], |
2100 ) |
2101 ) |
2101 elif sys.platform == "darwin": |
2102 elif sys.platform == "darwin": |
2102 optlist, args = getopt.getopt( |
2103 optlist, args = getopt.getopt( |
2103 argv[1:], |
2104 argv[1:], |
2104 "chvxza:b:d:f:i:m:n:p:", |
2105 "chvxza:b:d:f:i:m:n:p:", |
2105 ["help", "no-apis", "no-info", "no-tools", "verbose", "yes"], |
2106 ["help", "no-apis", "no-info", "with-tools", "verbose", "yes"], |
2106 ) |
2107 ) |
2107 else: |
2108 else: |
2108 optlist, args = getopt.getopt( |
2109 optlist, args = getopt.getopt( |
2109 argv[1:], |
2110 argv[1:], |
2110 "chvxza:b:d:f:i:", |
2111 "chvxza:b:d:f:i:", |
2111 ["help", "no-apis", "no-info", "no-tools", "verbose", "yes"], |
2112 ["help", "no-apis", "no-info", "with-tools", "verbose", "yes"], |
2112 ) |
2113 ) |
2113 except getopt.GetoptError as err: |
2114 except getopt.GetoptError as err: |
2114 print(err) |
2115 print(err) |
2115 usage() |
2116 usage() |
2116 |
2117 |