Bug #38103 myisamchk: --help output incomplete
Submitted: 14 Jul 2008 14:24 Modified: 18 Mar 2009 14:32
Reporter: Paul DuBois Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: MyISAM storage engine Severity:S3 (Non-critical)
Version:5.0 and up OS:Any
Assigned to: Anurag Shekhar CPU Architecture:Any

[14 Jul 2008 14:24] Paul DuBois
myisamchk has both --help and --HELP options, which produce different output (options grouped by use, options ungrouped and listed by name).

--HELP output lists both --help and --HELP
--help lists only --help

How to repeat:
% myisamchk --help|grep -i -e --help
  -?, --help          Display this help and exit.

% myisamchk --HELP | grep -i -e --help
  -H, --HELP          Display this help and exit.
  -?, --help          Display this help and exit.

Suggested fix:
=== modified file 'myisam/myisamchk.c'
--- myisam/myisamchk.c	2007-11-14 10:38:26 +0000
+++ myisam/myisamchk.c	2008-07-14 14:22:25 +0000
@@ -370,6 +370,7 @@ static void usage(void)
   -#, --debug=...     Output debug log. Often this is 'd:t:o,filename'.\n");
+  -H, --HELP          Display this help and exit.\n\
   -?, --help          Display this help and exit.\n\
   -O, --set-variable var=option.\n\
                       Change the value of a variable. Please note that\n\
[14 Jul 2008 14:46] Valeriy Kravchuk
Thank you for a problem report. Verified with 5.0-bzr and 5.1-bzr.
[15 Jul 2008 19:30] Jim Winstead
myisamchk belongs to the storage engines team.
[24 Feb 2009 15:15] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:


2818 Anurag Shekhar	2009-02-24
      Bug #38103 myisamchk: --help output incomplete
      In the output message for --help entry for -H --HELP was missing.
      Added this entry while printing the help text.
[13 Mar 2009 19:08] Bugs System
Pushed into 5.1.33 (revid:joro@sun.com-20090313111355-7bsi1hgkvrg8pdds) (version source revid:kgeorge@mysql.com-20090225094601-tsg0c8btvgne2kbs) (merge vers: 5.1.33) (pib:6)
[15 Mar 2009 3:05] Paul DuBois
Noted in 5.1.33 changelog.

--help output for myisamchk did not list the --HELP option.

Setting report to NDI pending push into 6.0.x.
[18 Mar 2009 13:20] Bugs System
Pushed into 6.0.11-alpha (revid:joro@sun.com-20090318122208-1b5kvg6zeb4hxwp9) (version source revid:kgeorge@mysql.com-20090225100618-0scm41mwuws5qxjb) (merge vers: 6.0.10-alpha) (pib:6)
[18 Mar 2009 14:32] Paul DuBois
Noted in 6.0.11 changelog.
[9 May 2009 16:47] Bugs System
Pushed into 5.1.34-ndb-6.2.18 (revid:jonas@mysql.com-20090508185236-p9b3as7qyauybefl) (version source revid:jonas@mysql.com-20090508100057-30ote4xggi4nq14v) (merge vers: 5.1.33-ndb-6.2.18) (pib:6)
[9 May 2009 17:43] Bugs System
Pushed into 5.1.34-ndb-6.3.25 (revid:jonas@mysql.com-20090509063138-1u3q3v09wnn2txyt) (version source revid:jonas@mysql.com-20090508175813-s6yele2z3oh6o99z) (merge vers: 5.1.33-ndb-6.3.25) (pib:6)
[9 May 2009 18:41] Bugs System
Pushed into 5.1.34-ndb-7.0.6 (revid:jonas@mysql.com-20090509154927-im9a7g846c6u1hzc) (version source revid:jonas@mysql.com-20090509073226-09bljakh9eppogec) (merge vers: 5.1.33-ndb-7.0.6) (pib:6)