Skip to content

Commit

Permalink
main: provide just binary name in help output
Browse files Browse the repository at this point in the history
Otherwise it prints out complete path which is probably not desired and
we would need to filter out paths in the test's output etc.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
  • Loading branch information
ynezz authored and jow- committed Apr 22, 2021
1 parent 778e4f7 commit 8039361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Expand Up @@ -36,7 +36,7 @@


static void
print_usage(char *app)
print_usage(const char *app)
{
printf(
"== Usage ==\n\n"
Expand All @@ -51,7 +51,7 @@ print_usage(char *app)
" -e Set global variables from given JSON object\n"
" -E Set global variables from given JSON file\n"
" -m Preload given module\n",
app);
basename(app));
}

static void
Expand Down

0 comments on commit 8039361

Please sign in to comment.