GNOME Bugzilla – Bug 740157
<app> --help doesn't work even when options were added
Last modified: 2014-11-15 16:36:08 UTC
When G_APPLICATION_HANDLES_COMMAND_LINE is set, --help doesn't work, even when options were added with g_application_add_option.
Created attachment 290748 [details] [review] gapplication: enable --help when app has options This should already work according to the documentation, but doesn't because main_options is consumed before the check in g_application_parse_command_line(). Fix by moving the check for main_options up.
Review of attachment 290748 [details] [review]: Thanks. Please go ahead.
Attachment 290748 [details] pushed as 021c4ad - gapplication: enable --help when app has options