Module Name:    src
Committed By:   rillig
Date:           Mon May 16 21:53:41 UTC 2022

Modified Files:
        src/games/gomoku: main.c

Log Message:
gomoku: add usage


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/games/gomoku/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/gomoku/main.c
diff -u src/games/gomoku/main.c:1.37 src/games/gomoku/main.c:1.38
--- src/games/gomoku/main.c:1.37	Mon May 16 21:48:45 2022
+++ src/games/gomoku/main.c	Mon May 16 21:53:41 2022
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1994\
 #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 @@ main(int argc, char **argv)
 		case 'c':	/* testing: computer versus computer */
 			test = 2;
 			break;
+		default:
+			fprintf(stderr, "usage: %s [-bcdu] [-Dfile] [file]\n",
+			    getprogname());
+			return EXIT_FAILURE;
 		}
 	}
 	argc -= optind;

Reply via email to