Commit 346630de authored by Lubomir Rintel's avatar Lubomir Rintel

connection-editor: ignore --help in main() option context

It's solely used for parsing --keep-above and doesn't know anything
about actual options and thus prints irrelevant help. Skip that and let
the GtkApplication::command-line signal handler parse it and print help
instead.
parent 5dc65269
......@@ -288,6 +288,7 @@ main (int argc, char *argv[])
opt_ctx = g_option_context_new (NULL);
g_option_context_add_main_entries (opt_ctx, entries, NULL);
g_option_context_set_help_enabled (opt_ctx, FALSE);
g_option_context_set_ignore_unknown_options (opt_ctx, TRUE);
g_option_context_parse (opt_ctx, &argc, &argv, NULL);
g_option_context_free (opt_ctx);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment