GNOME Bugzilla – Bug 50074
Command line option parsing API
Last modified: 2011-02-18 16:09:28 UTC
Implement an option parser; Havoc has this half done
Setting all outstanding bugs against 1.3.x to be due for the 2.0.0 milestone; will go through and move some of them to API freeze milestone and set milestone to none for punted features.
Moving GLib bugs with API keyword to the API freeze milestone
Created attachment 216 [details] Example source of a solution
Not going to happen for 2.0
I just looked up an old mail containing a proposal by Tim. Its here: http://mail.gnome.org/archives/gtk-devel-list/2000-May/msg00084.html
And here is a newer draft from Havoc: http://mail.gnome.org/archives/gtk-devel-list/2001- February/msg00088.html
*** Bug 105674 has been marked as a duplicate of this bug. ***
Created attachment 28577 [details] a more recent attempt by anders carlsson
In discussion with Anders, a few missing features of his current code came up: - add G_OPTION_ARG_NOPARSE to allow apps to add help strings for options of libs which they use and which don't support GOption - add a way to use GOption without parsing --help options, e.g. to reimplement gtk_init() using GOption - add pre- and post-parse hooks to GOptionGroup so that we can add GOptionGroup *gtk_get_options() and let the app do the parsing. the post-parse hook of the option group would then do the work of gtk_init()
Committed to HEAD now.