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

Function show_usage

tools/kconfig2html.c:373–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371 ****************************************************************************/
372
373static void show_usage(const char *progname, int exitcode)
374{
375 error("USAGE: "
376 "%s [-d] [-a <apps directory>] {-o <out file>] [<Kconfig root>]\n",
377 progname);
378 error(" %s [-h]\n\n", progname);
379 error("Where:\n\n");
380 error("\t-a : Select relative path to the apps/ directory."
381 " This path is relative\n");
382 error("\t to the <Kconfig directory>. Default: ../apps\n");
383 error("\t-o : Send output to <out file>. "
384 "Default: Output goes to stdout\n");
385 error("\t-d : Enable debug output\n");
386 error("\t-h : Prints this message and exits\n");
387 error("\t<Kconfig root> "
388 "is the directory containing the root Kconfig file.\n");
389 error("\t Default <Kconfig directory>: .\n");
390 exit(exitcode);
391}
392
393/****************************************************************************
394 * Name: skip_space

Callers 1

mainFunction · 0.70

Calls 2

errorFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected