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

Function show_help

tools/incdir.c:91–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91static void show_help(const char *progname, int exitcode)
92{
93 fprintf(stderr, "%s is a tool for flexible generation of include path "
94 "arguments for a\n",
95 progname);
96 fprintf(stderr, "variety of different compilers in a variety of "
97 "compilation environments\n");
98 fprintf(stderr, "\nUSAGE: %s [-w] [-s] <compiler-path> "
99 "<dir1> [<dir2> [<dir3> ...]]\n",
100 progname);
101 fprintf(stderr, " %s -h\n\n", progname);
102
103 fprintf(stderr, "Where:\n");
104 fprintf(stderr, " <compiler-path>\n");
105 fprintf(stderr, " The full path to your compiler\n");
106 fprintf(stderr, " <dir1> [<dir2> [<dir3> ...]]\n");
107 fprintf(stderr, " A list of include directories\n");
108 fprintf(stderr, " -w\n");
109 fprintf(stderr, " The compiler is a Windows native tool and requires "
110 "Windows\n");
111 fprintf(stderr, " style pathnames like C:\\Program Files\n");
112 fprintf(stderr, " -s\n");
113 fprintf(stderr, " Generate standard, system header file paths instead "
114 "of normal user\n");
115 fprintf(stderr, " header file paths.\n");
116 fprintf(stderr, " -h\n");
117 fprintf(stderr, " Shows this help text and exits.\n");
118
119 exit(exitcode);
120}
121
122static enum os_e get_os(void)
123{

Callers 1

mainFunction · 0.85

Calls 2

fprintfFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected