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>
This commit is contained in:
Daniel Santos 2022-05-13 14:15:08 +01:00
parent 81f8fd63a8
commit b34afcd993
1 changed files with 1 additions and 1 deletions

2
cli.c
View File

@ -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;
}