gapplication: enable --help when app has options
authorLars Uebernickel <lars.uebernickel@canonical.com>
Sat, 15 Nov 2014 09:30:41 +0000 (10:30 +0100)
committerLars Uebernickel <lars.uebernickel@canonical.com>
Sat, 15 Nov 2014 16:35:18 +0000 (17:35 +0100)
commit021c4ad050f979e5b36c34474d5fbb189278acdf
tree7b2d7afcdbc64936d0e903e5fb06fdc3add8554c
parent61cecd5a68743542baf685b47e8a4a5f4a98d205
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.

https://bugzilla.gnome.org/show_bug.cgi?id=740157
gio/gapplication.c
gio/tests/gapplication.c