GNOME Bugzilla – Bug 615667
--help-gtk does not work
Last modified: 2010-04-14 02:15:13 UTC
https://bugs.launchpad.net/ubuntu/+source/gcalctool/+bug/562347, I am forwarding this downstream bug. How to reproduce: exec: "gcalctool --help-gtk". Actual results: You using --help-gtk options, gcalctool said "Unknown argument '--help-gtk'" This is not expected as --help-gtk is listed as a command if you run --help ben@ben-desktop:~$ gcalctool --help Usage: gcalctool - Perform mathematical calculations Help Options: -v, --version Show release version -h, -?, --help Show help options --help-all Show all help options --help-gtk Show GTK+ options Application Options: -u, --unittest Perform unittests -s, --solve <equation> Solve the given equation
The original downstream reported added this code in a comment so I am also posting it here. We have two options: 1) --- calctool.c.orig 2010-04-14 00:18:36.476129781 +0900 +++ calctool.c 2010-04-14 00:05:34.867843655 +0900 @@ -142,6 +142,10 @@ usage(TRUE); exit(0); } + else if (strcmp(arg, "--help-gtk") == 0) { + usage(TRUE); + exit(0); + } else if (strcmp(arg, "-s") == 0 || strcmp(arg, "--solve") == 0) { i++; 2) --- calctool.c.orig 2010-04-14 00:18:36.476129781 +0900 +++ calctool.c 2010-04-14 00:19:53.964130221 +0900 @@ -90,8 +90,7 @@ _("Help Options:\n" " -v, --version Show release version\n" " -h, -?, --help Show help options\n" - " --help-all Show all help options\n" - " --help-gtk Show GTK+ options")); + " --help-all Show all help options")); fprintf(stderr, "\n\n");
Fixed, thanks!