Skip to content

Commit 5018b99

Browse files
committed
return --help option
1 parent 039cb6f commit 5018b99

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extra/mariabackup/xtrabackup.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ my_bool xtrabackup_move_back;
119119
my_bool xtrabackup_decrypt_decompress;
120120
my_bool xtrabackup_print_param;
121121
my_bool xtrabackup_mysqld_args;
122+
my_bool help;
122123

123124
my_bool xtrabackup_export;
124125

@@ -1415,6 +1416,11 @@ struct my_option xb_server_options[] =
14151416
(G_PTR *) &xtrabackup_mysqld_args, (G_PTR *) &xtrabackup_mysqld_args, 0,
14161417
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
14171418

1419+
{"help", '?',
1420+
"Display this help and exit.",
1421+
(G_PTR *) &help, (G_PTR *) &help, 0,
1422+
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1423+
14181424
{ 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
14191425
};
14201426

0 commit comments

Comments
 (0)