Lines Matching refs:arg

1365   int arg = 1;  in main()  local
1369 while(argc > arg) { in main()
1370 if(!strcmp("--version", argv[arg])) { in main()
1380 else if(!strcmp("--verbose", argv[arg])) { in main()
1382 arg++; in main()
1384 else if(!strcmp("--pidfile", argv[arg])) { in main()
1385 arg++; in main()
1386 if(argc > arg) in main()
1387 pidname = argv[arg++]; in main()
1389 else if(!strcmp("--portfile", argv[arg])) { in main()
1390 arg++; in main()
1391 if(argc > arg) in main()
1392 portname = argv[arg++]; in main()
1394 else if(!strcmp("--logfile", argv[arg])) { in main()
1395 arg++; in main()
1396 if(argc > arg) in main()
1397 serverlogfile = argv[arg++]; in main()
1399 else if(!strcmp("--ipv6", argv[arg])) { in main()
1404 arg++; in main()
1406 else if(!strcmp("--ipv4", argv[arg])) { in main()
1412 arg++; in main()
1414 else if(!strcmp("--bindonly", argv[arg])) { in main()
1416 arg++; in main()
1418 else if(!strcmp("--port", argv[arg])) { in main()
1419 arg++; in main()
1420 if(argc > arg) { in main()
1422 unsigned long ulnum = strtoul(argv[arg], &endptr, 10); in main()
1424 arg++; in main()
1427 else if(!strcmp("--connect", argv[arg])) { in main()
1430 arg++; in main()
1431 if(argc > arg) { in main()
1433 unsigned long ulnum = strtoul(argv[arg], &endptr, 10); in main()
1434 if((endptr != argv[arg] + strlen(argv[arg])) || in main()
1437 argv[arg]); in main()
1441 arg++; in main()
1444 else if(!strcmp("--addr", argv[arg])) { in main()
1446 arg++; in main()
1447 if(argc > arg) { in main()
1448 addr = argv[arg]; in main()
1449 arg++; in main()