Lines Matching refs:argv0
155 static void help(FILE *f, const char *argv0) { in help() argument
166 argv0, strstr(argv0, "host-name") ? "[-n]" : "-n", in help()
167 argv0, strstr(argv0, "address") ? "[-a]" : "-a"); in help()
170 static int parse_command_line(Config *c, const char *argv0, int argc, char *argv[]) { in parse_command_line() argument
184 …c->command = strstr(argv0, "address") ? COMMAND_RESOLVE_ADDRESS : (strstr(argv0, "host-name") ? CO… in parse_command_line()
230 const char *argv0; in main() local
235 if ((argv0 = strrchr(argv[0], '/'))) in main()
236 argv0++; in main()
238 argv0 = argv[0]; in main()
240 if (parse_command_line(&config, argv0, argc, argv) < 0) in main()
250 help(stdout, argv0); in main()
255 printf("%s "PACKAGE_VERSION"\n", argv0); in main()