Lines Matching refs:argv
71 bool Arguments::parseArguments(int argc, const char* argv[]) { in parseArguments() argument
72 if (argc < 1 || argv == nullptr) { return false; } in parseArguments()
75 if (strEqual(argv[i], "--nethandle")) { in parseArguments()
78 if (!parseNetworkHandle(argv[i], &nethandle)) { in parseArguments()
79 std::cerr << "Failed to parse nethandle: '" << argv[i] << "'" in parseArguments()
83 } else if (strEqual(argv[i], "--family")) { in parseArguments()
86 if (strEqual(argv[i], "unspec")) { in parseArguments()
88 } else if (strEqual(argv[i], "ipv4")) { in parseArguments()
90 } else if (strEqual(argv[i], "ipv6")) { in parseArguments()
95 } else if (strEqual(argv[i], "--mode")) { in parseArguments()
98 if (strEqual(argv[i], "explicit")) { in parseArguments()
100 } else if (strEqual(argv[i], "process")) { in parseArguments()
106 arg1 = argv[i]; in parseArguments()
117 printUsage(argv[0]); in parseArguments()