int
main(int argc, char **argv)
{
-#if 0
- extern FILE *f_log;
- char opencode;
-#endif
int ac;
char **av;
ac = argc;
av++;
srandomdev();
-#if 0
- opencode = 'w';
-#endif
while (ac > 1 && av[0][0] == '-') {
switch (av[0][1]) {
- case 'a': /* append to log file */
-#if 0
- opencode = 'a';
-#endif
- break;
-
#ifdef xTRACE
case 't': /* trace */
if (getuid() != Mother)
ac--;
av++;
}
- if (ac > 2)
- syserr("arg count");
-#if 0
if (ac > 1)
- f_log = fopen(av[0], opencode);
-#endif
+ syserr("arg count");
printf("\n * * * S T A R T R E K * * *\n\nPress return to continue.\n");
.\"
.\" @(#)trek.6 8.2 (Berkeley) 12/30/93
.\" $FreeBSD: src/games/trek/trek.6,v 1.4 1999/08/27 23:29:19 peter Exp $
-.\" $DragonFly: src/games/trek/trek.6,v 1.3 2007/03/27 10:08:02 swildner Exp $
.\"
-.Dd November 14, 2009
+.Dd July 12, 2012
.Dt TREK 6
.Os
.Sh NAME
.Nd trekkie game
.Sh SYNOPSIS
.Nm
-.Oo
-.Op Fl a
-.Ar file
-.Oc
.Sh DESCRIPTION
.Nm Trek
is a game of space glory and war.
.Em Trek
by Eric Allman.
.Pp
-If a filename is given, a log of the game is written onto that file.
-If the
-.Fl a
-flag is given before the filename, that file is appended to, not truncated.
-.Pp
The game will ask you what length game you would like.
Valid responses are
.Dq short ,