commit c855c9f037399e518322eeca99fb2944103555a1 from: Stefan Sperling via: Thomas Adam date: Thu Jan 19 16:33:26 2023 UTC document the gotd -n option commit - d98779cd32c7a981ee70a8e1cbcb7c544a6110b6 commit + c855c9f037399e518322eeca99fb2944103555a1 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); }