Lines Matching refs:opt
152 char *opt = argv[1];
153 if (strcmp(opt,"--") == 0) {
157 if (opt[0] != '-')
159 if (opt[1] == '-')
160 opt++;
161 if (matches(opt, "-family") == 0) {
180 } else if (strcmp(opt, "-4") == 0) {
182 } else if (strcmp(opt, "-6") == 0) {
184 } else if (strcmp(opt, "-0") == 0) {
186 } else if (strcmp(opt, "-I") == 0) {
188 } else if (strcmp(opt, "-D") == 0) {
190 } else if (matches(opt, "-stats") == 0 ||
191 matches(opt, "-statistics") == 0) {
193 } else if (matches(opt, "-details") == 0) {
195 } else if (matches(opt, "-resolve") == 0) {
197 } else if (matches(opt, "-oneline") == 0) {
199 } else if (matches(opt, "-timestamp") == 0) {
202 } else if (matches(opt, "-numeric") == 0) {
205 } else if (matches(opt, "-Version") == 0) {
208 } else if (matches(opt, "-force") == 0) {
211 } else if (matches(opt, "-batch") == 0) {
218 } else if (matches(opt, "-rcvbuf") == 0) {
231 } else if (matches(opt, "-help") == 0) {
234 fprintf(stderr, "Option \"%s\" is unknown, try \"ip -help\".\n", opt);