diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2007-04-02 14:55:17 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2007-04-02 14:55:17 +0000 |
commit | 14c7f9d8373fb73c44ae9f0b8c361df5dfb6fa6e (patch) | |
tree | 37e115b8f9a18500f8c83edc827c079845725e62 /games/hunt | |
parent | 2c2bfe859edd6b920733ea7d9267b78318a27c7d (diff) |
tidy up synopis and usage(); sort options; from Igor Sobrado
Diffstat (limited to 'games/hunt')
-rw-r--r-- | games/hunt/huntd/driver.c | 6 | ||||
-rw-r--r-- | games/hunt/huntd/huntd.6 | 44 |
2 files changed, 27 insertions, 23 deletions
diff --git a/games/hunt/huntd/driver.c b/games/hunt/huntd/driver.c index 1a0bdf9601e..f18d2bd54c8 100644 --- a/games/hunt/huntd/driver.c +++ b/games/hunt/huntd/driver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: driver.c,v 1.16 2004/01/16 00:13:19 espie Exp $ */ +/* $OpenBSD: driver.c,v 1.17 2007/04/02 14:55:16 jmc Exp $ */ /* $NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -119,7 +119,9 @@ main(ac, av) break; default: erred: - fprintf(stderr, "Usage: %s [-s] [-p port] [-a addr]\n", + fprintf(stderr, + "usage: %s [-s] [-a addr] [-Dvar=value ...] " + "[-p port]\n", av[0]); exit(2); } diff --git a/games/hunt/huntd/huntd.6 b/games/hunt/huntd/huntd.6 index a5d6a0c2ea5..facb90efed6 100644 --- a/games/hunt/huntd/huntd.6 +++ b/games/hunt/huntd/huntd.6 @@ -1,5 +1,5 @@ .\" $NetBSD: huntd.6,v 1.3 1998/01/09 08:03:42 perry Exp $ -.\" $OpenBSD: huntd.6,v 1.16 2003/05/20 03:18:05 pjanzen Exp $ +.\" $OpenBSD: huntd.6,v 1.17 2007/04/02 14:55:16 jmc Exp $ .\" .\" Hunt .\" Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -18,11 +18,13 @@ .Sh SYNOPSIS .Nm huntd .Op Fl s -.Op Fl p Ar port .Op Fl a Ar addr +.Sm off .Oo -.Fl D Ns Ar var Ns = Ns value ... +.Fl D Ar var No = Ar value \ \&... .Oc +.Sm on +.Op Fl p Ar port .Sh DESCRIPTION .Nm controls the multi-player @@ -30,24 +32,6 @@ controls the multi-player game. .Pp The -.Fl s -option is for running -.Nm -forever -.Pq server mode . -This is similar to running it under the control of -.Xr inetd 8 -.Pq see below , -but it consumes a process table entry when no one is playing, -and monitor clients are not disconnected. -.Pp -The -.Fl p Ar port -option changes the UDP port number used to rendezvous with the player -process and thus allows for private games of -.Xr hunt 6 . -.Pp -The .Fl a Ar addr option is used to cause the server to listen only on a specific interface address. @@ -63,6 +47,24 @@ see .Sx CONFIGURATION , below .Pc . +.Pp +The +.Fl p Ar port +option changes the UDP port number used to rendezvous with the player +process and thus allows for private games of +.Xr hunt 6 . +.Pp +The +.Fl s +option is for running +.Nm +forever +.Pq server mode . +This is similar to running it under the control of +.Xr inetd 8 +.Pq see below , +but it consumes a process table entry when no one is playing, +and monitor clients are not disconnected. .Ss INETD To run .Nm |