- fprintf(f,
- "%s [options] <service type>\n"
- "%s [options] -a\n"
- "%s [options] -D\n\n"
- " -h --help Show this help\n"
- " -V --version Show version\n"
- " -D --browse-domains Browse for browsing domains instead of services\n"
- " -a --all Show all services, regardless of the type\n"
- " -d --domain=DOMAIN The domain to browse in\n"
- " -v --verbose Enable verbose mode\n"
- " -t --terminate Terminate after dumping a more or less complete list\n"
- " -c --cache Terminate after dumping all entries from the cache\n"
- " -l --ignore-local Ignore local services\n"
- " -r --resolve Resolve services found\n"
- " -f --no-fail Don't fail if the server is not available\n"
-#ifdef HAVE_GDBM
- " -k --no-db-lookup Don't lookup service types\n"
+ if (strstr(argv0, "domain"))
+ fprintf(f, "%s [options] \n\n", argv0);
+ else
+ fprintf(f,
+ "%s [options] <service type>\n"
+ "%s [options] -a\n"
+ "%s [options] -D\n"
+#if defined(HAVE_GDBM) || defined(HAVE_DBM)
+ "%s [options] -b\n"
+#endif
+ "\n",
+#if defined(HAVE_GDBM) || defined(HAVE_DBM)
+ argv0,
+#endif
+ argv0, argv0, argv0);
+
+ fprintf(f, "%s%s",
+ _(" -h --help Show this help\n"
+ " -V --version Show version\n"
+ " -D --browse-domains Browse for browsing domains instead of services\n"
+ " -a --all Show all services, regardless of the type\n"
+ " -d --domain=DOMAIN The domain to browse in\n"
+ " -v --verbose Enable verbose mode\n"
+ " -t --terminate Terminate after dumping a more or less complete list\n"
+ " -c --cache Terminate after dumping all entries from the cache\n"
+ " -l --ignore-local Ignore local services\n"
+ " -r --resolve Resolve services found\n"
+ " -f --no-fail Don't fail if the daemon is not available\n"
+ " -p --parsable Output in parsable format\n"),
+#if defined(HAVE_GDBM) || defined(HAVE_DBM)
+ _(" -k --no-db-lookup Don't lookup service types\n"
+ " -b --dump-db Dump service type database\n")
+#else
+ ""