about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDaniel Santos <dacs.git@brilhante.top>2022-05-13 14:15:08 +0100
committerDaniel Santos <dacs.git@brilhante.top>2022-05-13 14:15:08 +0100
commitb34afcd993eb0cbf2d043e6fad29bd6fd56af541 (patch)
tree2e929ec8310f65109b21eca45355f4762d2bddfc
parent81f8fd63a82915fc274c7cac10854cadf2f640f9 (diff)
downloadnumericx-c-b34afcd993eb0cbf2d043e6fad29bd6fd56af541.tar.gz
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 <dacs.git@brilhante.top>
-rw-r--r--cli.c2
1 files changed, 1 insertions, 1 deletions
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 <number>\n", "numericx");
+		fprintf(stderr, "usage: %s <number>\n", argv[0]);
 		return E2BIG;
 	}