commit e9e01966df9e3fe005d0e7c8abcc92134838eaf9 from: Stefan Sperling date: Wed Jan 18 21:40:13 2023 UTC document the gotd -n option commit - 0ff2c315fe0f2f0fe4a92cae73c8a4a9fd21a402 commit + e9e01966df9e3fe005d0e7c8abcc92134838eaf9 blob - 63fb51bcda228d669665ea9b5f76e323fa1fa909 blob + 4e3f864286420fba3f86b2256864c6985e5acfa4 --- gotd/gotd.8 +++ gotd/gotd.8 @@ -21,7 +21,7 @@ .Nd Game of Trees Daemon .Sh SYNOPSIS .Nm -.Op Fl dv +.Op Fl dnv .Op Fl f Ar config-file .Sh DESCRIPTION .Nm @@ -59,6 +59,9 @@ Set the path to the configuration file. If not specified, the file .Pa /etc/gotd.conf will be used. +.It Fl n +Configtest mode. +Only check the configuration file for validity. .It Fl v Verbose mode. Verbosity increases if this option is used multiple times. blob - bbef698cd852eda07d51755cb924554e0f98b3c2 blob + 823a2d9d22e1f4f65df19bbbb7539f88ae4ce5a2 --- gotd/gotd.c +++ gotd/gotd.c @@ -107,7 +107,7 @@ static void kill_proc(struct gotd_child_proc *, int); __dead static void usage() { - fprintf(stderr, "usage: %s [-dv] [-f config-file]\n", getprogname()); + fprintf(stderr, "usage: %s [-dnv] [-f config-file]\n", getprogname()); exit(1); }