After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 699893 - GApplication: handle --help and --version
GApplication: handle --help and --version
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gapplication
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-05-08 02:18 UTC by Matthias Clasen
Modified: 2016-04-12 03:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GApplication: handle --help and --version (7.11 KB, patch)
2013-05-08 02:18 UTC, Matthias Clasen
needs-work Details | Review

Description Matthias Clasen 2013-05-08 02:18:44 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.
Comment 1 Matthias Clasen 2013-05-08 02:18:47 UTC
Created attachment 243557 [details] [review]
GApplication: handle --help and --version
Comment 2 Matthias Clasen 2013-05-08 02:37:02 UTC
the api here is not very well-liked; alternatives include some xml pif blob that could be looked up as a resource
Comment 3 Allison Karlitskaya (desrt) 2013-05-08 02:37:46 UTC
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).
Comment 4 Matthias Clasen 2016-04-12 03:40:24 UTC
help is handled now, version is much easier with handle-local-options