diff options
author | unknown <serg@serg.mysql.com> | 2002-06-30 15:05:29 +0000 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-06-30 15:05:29 +0000 |
commit | 4d10683775edd2ad63e78acc09fc7d40b83efba9 (patch) | |
tree | ec5b57c88f333ad6796aaddee7d213fd66345e58 /myisam/myisamchk.c | |
parent | 1158fd9f2e5934bdcf871791895bec58854c843c (diff) | |
download | mariadb-git-4d10683775edd2ad63e78acc09fc7d40b83efba9.tar.gz |
added -H (--HELP) to myisamchk to get a list of all the options it accepts (including debug and internal ones).
Diffstat (limited to 'myisam/myisamchk.c')
-rw-r--r-- | myisam/myisamchk.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c index 67fb693d6ee..058c73e10b2 100644 --- a/myisam/myisamchk.c +++ b/myisam/myisamchk.c @@ -194,6 +194,9 @@ static struct my_option my_long_options[] = {"force", 'f', "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}, + {"HELP", 'H', + "Display this help and exit.", + 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}, {"help", '?', "Display this help and exit.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}, @@ -624,6 +627,9 @@ get_one_option(int optid, check_param.start_check_pos= strtoull(argument, NULL, 0); break; #endif + case 'H': + my_print_help(my_long_options); + exit(0); case '?': usage(); exit(0); |