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

Function show_usage

tools/mkdeps.c:258–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258static void show_usage(const char *progname, const char *msg, int exitcode)
259{
260 if (msg)
261 {
262 fprintf(stderr, "\n");
263 fprintf(stderr, "%s:\n", msg);
264 }
265
266 fprintf(stderr, "\n");
267 fprintf(stderr, "%s [OPTIONS] CC -- CFLAGS -- file [file [file...]]\n",
268 progname);
269 fprintf(stderr, "\n");
270 fprintf(stderr, "Where:\n");
271 fprintf(stderr, " CC\n");
272 fprintf(stderr, " A variable number of arguments that define how to\n");
273 fprintf(stderr, " execute the compiler\n");
274 fprintf(stderr, " CFLAGS\n");
275 fprintf(stderr, " The compiler compilation flags\n");
276 fprintf(stderr, " file\n");
277 fprintf(stderr, " One or more C files whose dependencies will be\n");
278 fprintf(stderr, " checked. Each file is expected\n");
279 fprintf(stderr, " to reside in the current directory unless\n");
280 fprintf(stderr, " --dep-path is provided on the command line\n");
281 fprintf(stderr, "\n");
282 fprintf(stderr, "And [OPTIONS] include:\n");
283 fprintf(stderr, " --dep-debug\n");
284 fprintf(stderr, " Enable script debug\n");
285 fprintf(stderr, " --dep-path <path>\n");
286 fprintf(stderr, " Do not look in the current directory for the\n");
287 fprintf(stderr, " file. Instead, look in <path> to see\n");
288 fprintf(stderr, " if the file resides there. --dep-path may be\n");
289 fprintf(stderr, " used multiple times to specify\n");
290 fprintf(stderr, " multiple alternative location\n");
291 fprintf(stderr, " --obj-path <path>\n");
292 fprintf(stderr, " The final objects will not reside in this path\n");
293 fprintf(stderr, " but, rather, at the path provided by\n");
294 fprintf(stderr, " <path>. if provided multiple time, only the last\n");
295 fprintf(stderr, " --obj-path will be used.\n");
296 fprintf(stderr, " --obj-suffix <suffix>\n");
297 fprintf(stderr, " If an object path is provided, then the extension\n");
298 fprintf(stderr, " will be assumed to be .o. This\n");
299 fprintf(stderr, " default suffix can be overridden with this\n");
300 fprintf(stderr, " command line option.\n");
301 fprintf(stderr, " --winnative\n");
302 fprintf(stderr, " By default, a POSIX-style environment is assumed\n");
303 fprintf(stderr, " (e.g., Linux, Cygwin, etc.) This option is\n");
304 fprintf(stderr, " inform the tool that is working in a pure Windows\n");
305 fprintf(stderr, " native environment.\n");
306#ifdef HOST_CYGWIN
307 fprintf(stderr, " --winpaths\n");
308 fprintf(stderr, " This option is useful when using a Windows native\n");
309 fprintf(stderr, " toolchain in a POSIX environment (such such as\n");
310 fprintf(stderr, " Cygwin). In this case, will CC\n");
311 fprintf(stderr, " generates dependency lists using Windows paths\n");
312 fprintf(stderr, " (e.g., C:\\blablah\\blabla).\n");
313#endif
314 fprintf(stderr, " --help\n");
315 fprintf(stderr, " Shows this message and exits\n");

Callers 2

parse_argsFunction · 0.70
mkdeps.cFile · 0.70

Calls 2

fprintfFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected