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

Function parse_args

tools/configure.c:267–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267static void parse_args(int argc, char **argv)
268{
269 char *ptr;
270 int ch;
271
272 /* Parse command line options */
273
274 while ((ch = getopt(argc, argv, "a:bcdEefghLlmBnu")) > 0)
275 {
276 switch (ch)
277 {
278 case 'a' :
279 g_appdir = optarg;
280 break;
281
282 case 'b' :
283 g_delim = '\\';
284 g_winpaths = false;
285 break;
286
287 case 'c' :
288 g_host = HOST_WINDOWS;
289 g_windows = WINDOWS_CYGWIN;
290 break;
291
292 case 'd' :
293 g_debug = true;
294 break;
295
296 case 'E' :
297 g_enforce = true;
298 break;
299
300 case 'e' :
301 g_distclean = true;
302 break;
303
304 case 'f' :
305 g_delim = '/';
306 g_winpaths = true;
307 break;
308
309 case 'g' :
310 g_host = HOST_WINDOWS;
311 g_windows = WINDOWS_MSYS;
312 break;
313
314 case 'h' :
315 show_usage(argv[0], EXIT_SUCCESS);
316
317 case 'L' :
318 dumpcfgs();
319
320 case 'l' :
321 g_host = HOST_LINUX;
322 break;
323
324 case 'm' :

Callers 1

mainFunction · 0.70

Calls 7

getoptFunction · 0.85
dumpcfgsFunction · 0.85
fprintfFunction · 0.85
verify_optiondirFunction · 0.85
strdupFunction · 0.85
show_usageFunction · 0.70
strchrFunction · 0.50

Tested by

no test coverage detected