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 338242 - [GOption] Function to display help/usage
[GOption] Function to display help/usage
Status: RESOLVED DUPLICATE of bug 336089
Product: glib
Classification: Platform
Component: general
2.8.x
Other All
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2006-04-12 16:17 UTC by Martin Szulecki
Modified: 2006-04-12 18:13 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Martin Szulecki 2006-04-12 16:17:47 UTC
GOption might need a tidbit more functionality as it is targeted to be used all
over the place instead of popt now.

I noticed that there is a lack of control over when the actual usage is displayed.

If this is by "design" in order to only show usage on -?/--help and imply that
the called application will return a warning/error for a specific wrong
argument, then please close this report. (Will report errors instead of usage to
the user)

Example:

void g_option_context_help_show[_and_exit?](GOptionContext *context,
GOptionGroup *group)

:)
Comment 1 Behdad Esfahbod 2006-04-12 18:13:41 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 336089 ***