Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/gomoku gomoku: add usage
details: https://anonhg.NetBSD.org/src/rev/02b6038d65b2
branches: trunk
changeset: 366168:02b6038d65b2
user: rillig <rillig%NetBSD.org@localhost>
date: Mon May 16 21:53:41 2022 +0000
description:
gomoku: add usage
diffstat:
games/gomoku/main.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r c23908f2c522 -r 02b6038d65b2 games/gomoku/main.c
--- a/games/gomoku/main.c Mon May 16 21:48:45 2022 +0000
+++ b/games/gomoku/main.c Mon May 16 21:53:41 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.37 2022/05/16 21:48:45 rillig Exp $ */
+/* $NetBSD: main.c,v 1.38 2022/05/16 21:53:41 rillig Exp $ */
/*
* Copyright (c) 1994
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: main.c,v 1.37 2022/05/16 21:48:45 rillig Exp $");
+__RCSID("$NetBSD: main.c,v 1.38 2022/05/16 21:53:41 rillig Exp $");
#endif
#endif /* not lint */
@@ -133,6 +133,10 @@
case 'c': /* testing: computer versus computer */
test = 2;
break;
+ default:
+ fprintf(stderr, "usage: %s [-bcdu] [-Dfile] [file]\n",
+ getprogname());
+ return EXIT_FAILURE;
}
}
argc -= optind;
Home |
Main Index |
Thread Index |
Old Index