diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2005-11-05 21:25:01 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2005-11-05 21:25:01 +0000 |
commit | aa16da3ae0fba78d9cd5cf06d5e614c9ee659d48 (patch) | |
tree | 502a2cd84f6aa750799e0357007cb2a426d06d76 /games/pom | |
parent | 5b4c0f0d219b42c42e4fc915fcf514dd6756f462 (diff) |
- use macros for args
- better list -width
- epoch -> Epoch
- missing set of `[]' in usage()
Diffstat (limited to 'games/pom')
-rw-r--r-- | games/pom/pom.6 | 29 | ||||
-rw-r--r-- | games/pom/pom.c | 6 |
2 files changed, 26 insertions, 9 deletions
diff --git a/games/pom/pom.6 b/games/pom/pom.6 index cf565ffce65..08115581df4 100644 --- a/games/pom/pom.6 +++ b/games/pom/pom.6 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pom.6,v 1.6 2003/06/03 03:01:40 millert Exp $ +.\" $OpenBSD: pom.6,v 1.7 2005/11/05 21:25:00 jmc Exp $ .\" .\" Copyright (c) 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -37,16 +37,33 @@ .Nd display the phase of the moon .Sh SYNOPSIS .Nm pom -.Op [[[[[cc]yy]mm]dd]HH] +.Sm off +.Oo +.Oo Oo Oo Oo Oo +.Ar cc Oc +.Ar yy Oc +.Ar mm Oc +.Ar dd Oc +.Ar HH Oc +.Oc +.Sm on .Sh DESCRIPTION The .Nm utility displays the current phase of the moon. Useful for selecting software completion target dates and predicting managerial behavior. -.Pp -.Bl -tag -width [[[[[cc]yy]mm]dd]HH] -.It Ar [[[[[cc]yy]mm]dd]HH] +.Bl -tag -width "[[[[[cc]yy]mm]dd]HH]XX" +.It Xo +.Sm off +.Oo Oo Oo Oo Oo +.Ar cc Oc +.Ar yy Oc +.Ar mm Oc +.Ar dd Oc +.Ar HH Oc +.Sm on +.Xc Display the phase of the moon for a given time. The format is similar to the canonical representation used by .Xr date 1 . @@ -56,7 +73,7 @@ The format is similar to the canonical representation used by .Sh BUGS Times must be within range of the .Ux -epoch. +Epoch. .Sh ACKNOWLEDGEMENTS This program is based on routines from .%B Practical Astronomy with Your Calculator, Third Edition diff --git a/games/pom/pom.c b/games/pom/pom.c index 8cd921e045d..2c70fcf2659 100644 --- a/games/pom/pom.c +++ b/games/pom/pom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pom.c,v 1.11 2004/07/10 07:26:23 deraadt Exp $ */ +/* $OpenBSD: pom.c,v 1.12 2005/11/05 21:25:00 jmc Exp $ */ /* $NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $ */ /* @@ -42,7 +42,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: pom.c,v 1.11 2004/07/10 07:26:23 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: pom.c,v 1.12 2005/11/05 21:25:00 jmc Exp $"; #endif #endif /* not lint */ @@ -273,6 +273,6 @@ void badformat(void) { warnx("illegal time format"); - (void)fprintf(stderr, "usage: pom [[[[[cc]yy]mm]dd]HH]\n"); + (void)fprintf(stderr, "usage: pom [[[[[[cc]yy]mm]dd]HH]]\n"); exit(1); } |