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 694063 - gnome-disks command line options / man page don't match help output
gnome-disks command line options / man page don't match help output
Status: RESOLVED FIXED
Product: gnome-disk-utility
Classification: Core
Component: general
3.7.x
Other Linux
: Normal minor
: ---
Assigned To: gnome-disk-utility-maint
gnome-disk-utility-maint
Depends on:
Blocks:
 
 
Reported: 2013-02-18 05:33 UTC by nick black
Modified: 2015-05-23 20:57 UTC
See Also:
GNOME target: ---
GNOME version: 3.7/3.8


Attachments
Sync the command line option parsing to the help output (1.06 KB, patch)
2013-02-18 05:33 UTC, nick black
none Details | Review
Sync the man page to the help output (699 bytes, patch)
2013-02-18 05:34 UTC, nick black
reviewed Details | Review

Description nick black 2013-02-18 05:33:30 UTC
Created attachment 236549 [details] [review]
Sync the command line option parsing to the help output

Hey there. While packaging gnome-disks 3.7.2 for SprezzOS 1.1.0, it was determined that none of the command-line option parsing, command-line help text, and man page agree on how to get help.

Following GNUish convention and personal expectation, I went with -h/--help (as featured in the help text), and synced the man page and parser to it. Please apply both patches. Thanks!
Comment 1 nick black 2013-02-18 05:34:04 UTC
Created attachment 236550 [details] [review]
Sync the man page to the help output
Comment 2 Michael Catanzaro 2015-05-23 20:33:36 UTC
Comment on attachment 236549 [details] [review]
Sync the command line option parsing to the help output

Sorry for the delay.

g_application_add_main_option_entries is used for this now, and it handles --help, -h, and -?.
Comment 3 Michael Catanzaro 2015-05-23 20:42:30 UTC
Review of attachment 236550 [details] [review]:

Hm, I've never seen the --help / -h style before. I will use -h, --help instead.