shithub: moonfish

Download patch

ref: 1f124ecfd86cc9be10f83cd1e3a228a28278b8d3
parent: f546f1faf0587a86092cb36b119de0aa13590b64
author: zamfofex <zamfofex@twdb.moe>
date: Sat Dec 16 08:56:03 EST 2023

make usage strings slightly clearer

--- a/tools/analyse.c
+++ b/tools/analyse.c
@@ -649,7 +649,7 @@
 	
 	if (argc < 3)
 	{
-		if (argc > 0) fprintf(stderr, "usage: %s <FEN> <command>\n", argv[0]);
+		if (argc > 0) fprintf(stderr, "usage: %s <FEN> <command> <args>...\n", argv[0]);
 		return 1;
 	}
 	
--- a/tools/lichess.c
+++ b/tools/lichess.c
@@ -859,7 +859,7 @@
 	{
 		if (argc > 0)
 		{
-			fprintf(stderr, "usage: %s [<host-name>] [<host-port>] [--] <command>\n", argv[0]);
+			fprintf(stderr, "usage: %s [<host-name>] [<host-port>] [--] <command> <args>...\n", argv[0]);
 			fprintf(stderr, "note: '--' is only optional when both '<host-name>' and '<host-port>' are specified\n");
 		}
 		return 1;
--- a/tools/play.c
+++ b/tools/play.c
@@ -329,7 +329,7 @@
 	
 	if (argc < 3)
 	{
-		if (argc > 0) fprintf(stderr, "usage: %s <time-control> <command>\n", argv[0]);
+		if (argc > 0) fprintf(stderr, "usage: %s <time-control> <command> <args>...\n", argv[0]);
 		return 1;
 	}
 	
--