From b34afcd993eb0cbf2d043e6fad29bd6fd56af541 Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Fri, 13 May 2022 14:15:08 +0100 Subject: [PATCH] cli.c: usage with argv[0] Instead of printing a usage message with the "numericx" string as a program name, uses argv[0], better for debugging log readability. Signed-off-by: Daniel Santos --- cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.c b/cli.c index 8ccf3dd..1d01239 100644 --- a/cli.c +++ b/cli.c @@ -111,7 +111,7 @@ main(int argc, char* argv[]) /* argument processing */ if( !(argc == 2) ) { - fprintf(stderr, "usage: %s \n", "numericx"); + fprintf(stderr, "usage: %s \n", argv[0]); return E2BIG; }