From e0c46adaa7f0c99ac9fbf1bbc1c790527c842e3c Mon Sep 17 00:00:00 2001 From: "H.G.Muller" Date: Mon, 20 Apr 2020 09:52:18 +0200 Subject: [PATCH] Update "usage is" message The usage message now mentiones the -x, -c and -f flags. It also prints the name of the executable, rather than the protocol-adapted name. --- UCI2WB.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UCI2WB.c b/UCI2WB.c index f8adcc8..d7417d0 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -542,6 +542,7 @@ GUI2Engine() } + void DoCommand () { @@ -752,7 +753,7 @@ main(int argc, char **argv) if(argc > 2 && !strcmp(argv[1], "-nice")) { sscanf(argv[2], "%d", &priority); argc-=2; argv+=2; } if(argc > 2 && !strcmp(argv[1], "-kill")) { sscanf(argv[2], "%d", &killDelay); argc-=2; argv+=2; } if(argc > 1 && argv[1][0] == '-') { sc = argv[1][1]; argc--; argv++; } - if(argc < 2) { printf("usage is: U%cI2WB [debug] [-s] []\n", sc-32); exit(-1); } + if(argc < 2) { printf("usage is: %s [debug] [-s|-x|-c|-f] []\n", argv[0]); exit(-1); } if(argc > 2) dir = argv[2]; if(argc > 3) strncpy(suffix, argv[3], 80); -- 2.17.1