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 615667 - --help-gtk does not work
--help-gtk does not work
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
5.28.x
Other Linux
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-13 16:04 UTC by Ben
Modified: 2010-04-14 02:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ben 2010-04-13 16:04:33 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
Comment 1 Ben 2010-04-13 16:06:43 UTC
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");
Comment 2 Robert Ancell 2010-04-14 02:15:13 UTC
Fixed, thanks!