MCPcopy Create free account
hub / github.com/apache/nuttx / show_usage

Function show_usage

tools/configure.c:171–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 ****************************************************************************/
170
171static void show_usage(const char *progname, int exitcode)
172{
173 fprintf(stderr, "\nUSAGE: %s [-d] [-E] [-e] [-b|f] [-L] [-l|m|c|g|n|B] "
174 "[-a <app-dir>] <board-name>:<config-name> [make-opts]\n",
175 progname);
176 fprintf(stderr, "\nUSAGE: %s [-h]\n", progname);
177 fprintf(stderr, "\nWhere:\n");
178 fprintf(stderr, " -d:\n");
179 fprintf(stderr, " Enables debug output\n");
180 fprintf(stderr, " -E:\n");
181 fprintf(stderr, " Enforce distclean if already configured\n");
182 fprintf(stderr, " -e:\n");
183 fprintf(stderr, " Performs distclean if configuration changed\n");
184 fprintf(stderr, " -b:\n");
185#ifdef CONFIG_WINDOWS_NATIVE
186 fprintf(stderr, " Informs the tool that it should use Windows style\n");
187 fprintf(stderr, " paths like C:\\Program Files instead of POSIX\n");
188 fprintf(stderr, " style paths are used like /usr/local/bin. Windows\n");
189 fprintf(stderr, " style paths are used by default.\n");
190#else
191 fprintf(stderr, " Informs the tool that it should use Windows style\n");
192 fprintf(stderr, " paths like C:\\Program Files. By default, POSIX\n");
193 fprintf(stderr, " style paths like /usr/local/bin are used.\n");
194#endif
195 fprintf(stderr, " -f:\n");
196#ifdef CONFIG_WINDOWS_NATIVE
197 fprintf(stderr, " Informs the tool that it should use POSIX style\n");
198 fprintf(stderr, " paths like /usr/local/bin. By default, Windows\n");
199 fprintf(stderr, " style paths like C:\\Program Files are used.\n");
200#else
201 fprintf(stderr, " Informs the tool that it should use POSIX style\n");
202 fprintf(stderr, " paths like /usr/local/bin instead of Windows\n");
203 fprintf(stderr, " style paths like C:\\Program Files are used.\n");
204 fprintf(stderr, " POSIX style paths are used by default.\n");
205#endif
206 fprintf(stderr, " [-l|m|c|g|n]\n");
207 fprintf(stderr, " Selects the host environment.\n");
208 fprintf(stderr, " -l Selects the Linux (l) host environment.\n");
209 fprintf(stderr, " -m Selects the macOS (m) host environment.\n");
210 fprintf(stderr, " -B Selects the *BSD (B) host environment.\n");
211 fprintf(stderr, " -c Selects the Windows Cygwin (c) environment.\n");
212 fprintf(stderr, " -g Selects the Windows MinGW/MSYS environment.\n");
213 fprintf(stderr, " -n Selects the Windows native (n) environment.\n");
214 fprintf(stderr, " Default: Use host setup in the defconfig file.\n");
215 fprintf(stderr, " Default Windows: Cygwin.\n");
216 fprintf(stderr, " -L:\n");
217 fprintf(stderr, " Lists all available configurations.\n");
218 fprintf(stderr, " -a <app-dir>:\n");
219 fprintf(stderr, " Informs the configuration tool where the\n");
220 fprintf(stderr, " application build directory. This is a relative\n");
221 fprintf(stderr, " path from the top-level NuttX build directory.\n");
222 fprintf(stderr, " But default, this tool will look in the usual\n");
223 fprintf(stderr, " places to locate the application directory:\n");
224 fprintf(stderr, " ..%capps or\n", g_delim);
225 fprintf(stderr, " ..%capps-xx.yy where xx.yy is the version number.\n",
226 g_delim);
227 fprintf(stderr, " <board-name>:\n");
228 fprintf(stderr, " Identifies the board. This must correspond to a\n");

Callers 1

parse_argsFunction · 0.70

Calls 2

fprintfFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected