GNOME Bugzilla – Bug 699893
GApplication: handle --help and --version
Last modified: 2016-04-12 03:40:24 UTC
GApplication is not designed for extensive commandline handling. But many programming guidelines require --help and --version options, so handle those in the default local_command_line handler.
Created attachment 243557 [details] [review] GApplication: handle --help and --version
the api here is not very well-liked; alternatives include some xml pif blob that could be looked up as a resource
After a discussion on IRC it seems that we may need a 'more powerful' approach to deal with cases like this. I'm particularly fond of using resources to embed this type of information directly inside of the app at a well-known resource path as well as additional things (imagine /org/gnome/gedit/AppMenu for example).
help is handled now, version is much easier with handle-local-options