| 371 | ****************************************************************************/ |
| 372 | |
| 373 | static 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 |