Commit cc1142bd authored by unknown's avatar unknown

added -H (--HELP) to myisamchk to get a list of all the options it accepts...

added -H (--HELP) to myisamchk to get a list of all the options it accepts (including debug and internal ones).

parent 5ba8d3aa
...@@ -194,6 +194,9 @@ static struct my_option my_long_options[] = ...@@ -194,6 +194,9 @@ static struct my_option my_long_options[] =
{"force", 'f', {"force", 'f',
"Restart with -r if there are any errors in the table. States will be updated as with --update-state.", "Restart with -r if there are any errors in the table. States will be updated as with --update-state.",
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
{"HELP", 'H',
"Display this help and exit.",
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
{"help", '?', {"help", '?',
"Display this help and exit.", "Display this help and exit.",
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
...@@ -624,6 +627,9 @@ get_one_option(int optid, ...@@ -624,6 +627,9 @@ get_one_option(int optid,
check_param.start_check_pos= strtoull(argument, NULL, 0); check_param.start_check_pos= strtoull(argument, NULL, 0);
break; break;
#endif #endif
case 'H':
my_print_help(my_long_options);
exit(0);
case '?': case '?':
usage(); usage();
exit(0); exit(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment