Fix g_option_context_get_help() usage

This commit is contained in:
Přemysl Eric Janouch 2021-10-12 01:25:10 +02:00
parent 627c296057
commit 3d53b2c131
Signed by: p
GPG Key ID: A0420B94F92B9493
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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