From 3d53b2c131914da48fe8873f4133995bd42dbdcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Tue, 12 Oct 2021 01:25:10 +0200 Subject: [PATCH] Fix g_option_context_get_help() usage --- src/add-pronunciation.c | 2 +- src/tabfile.c | 2 +- src/transform.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add-pronunciation.c b/src/add-pronunciation.c index 9aedd42..90d9673 100644 --- a/src/add-pronunciation.c +++ b/src/add-pronunciation.c @@ -284,7 +284,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS fatal ("Error: option parsing failed: %s\n", error->message); if (argc != 3) - fatal ("%s", g_option_context_get_help (ctx, TRUE, FALSE)); + fatal ("%s", g_option_context_get_help (ctx, TRUE, NULL)); g_option_context_free (ctx); diff --git a/src/tabfile.c b/src/tabfile.c index fa67303..11ce4e8 100644 --- a/src/tabfile.c +++ b/src/tabfile.c @@ -179,7 +179,7 @@ main (int argc, char *argv[]) if (!g_option_context_parse (ctx, &argc, &argv, &error)) fatal ("Error: option parsing failed: %s\n", error->message); if (argc != 2) - fatal ("%s", g_option_context_get_help (ctx, TRUE, FALSE)); + fatal ("%s", g_option_context_get_help (ctx, TRUE, NULL)); g_option_context_free (ctx); template.version = SD_VERSION_3_0_0; diff --git a/src/transform.c b/src/transform.c index 38bdad6..ba33dee 100644 --- a/src/transform.c +++ b/src/transform.c @@ -155,7 +155,7 @@ main (int argc, char *argv[]) fatal ("Error: option parsing failed: %s\n", error->message); if (argc < 3) - fatal ("%s", g_option_context_get_help (ctx, TRUE, FALSE)); + fatal ("%s", g_option_context_get_help (ctx, TRUE, NULL)); // GLib is bullshit, getopt_long() always correctly removes this gint program_argv_start = 3;