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 708831 - console: improve --help handling
console: improve --help handling
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
: 707597 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-09-26 11:41 UTC by Giovanni Campagna
Modified: 2014-03-27 03:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
console: improve --help handling (1.71 KB, patch)
2013-09-26 11:41 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2013-09-26 11:41:31 UTC
Only recognize -h/--help if it's the first argument that is not
eaten by GOptionContext. This way it's possible to interpret
--help after the filename as application help, rather than gjs help.
Comment 1 Giovanni Campagna 2013-09-26 11:41:33 UTC
Created attachment 255822 [details] [review]
console: improve --help handling
Comment 2 Colin Walters 2013-09-26 13:45:47 UTC
Review of attachment 255822 [details] [review]:

This looks good to me.  Ideally we'd have functionality like this in GOption, but I fear adding even more complexity there.
Comment 3 Giovanni Campagna 2013-09-26 14:03:15 UTC
Attachment 255822 [details] pushed as 9428ef4 - console: improve --help handling
Comment 4 Philip Chimento 2014-03-27 03:05:44 UTC
*** Bug 707597 has been marked as a duplicate of this bug. ***