Use the facilities of GApplication for handling commandline options. https://bugzilla.gnome.org/show_bug.cgi?id=727881