259
259
static COMMANDS commands[] = {
260
{ "?", '?', com_help, 1, gettext_noop("Synonym for `help'.") },
261
{ "clear", 'c', com_clear, 0, gettext_noop("Clear command.")},
260
{ "?", '?', com_help, 1, N_("Synonym for `help'.") },
261
{ "clear", 'c', com_clear, 0, N_("Clear command.")},
262
262
{ "connect",'r', com_connect,1,
263
gettext_noop("Reconnect to the server. Optional arguments are db and host." }),
263
N_("Reconnect to the server. Optional arguments are db and host." }),
264
264
{ "delimiter", 'd', com_delimiter, 1,
265
gettext_noop("Set statement delimiter. NOTE: Takes the rest of the line as new delimiter.") },
265
N_("Set statement delimiter. NOTE: Takes the rest of the line as new delimiter.") },
266
266
{ "ego", 'G', com_ego, 0,
267
gettext_noop("Send command to drizzle server, display result vertically.")},
268
{ "exit", 'q', com_quit, 0, gettext_noop("Exit drizzle. Same as quit.")},
269
{ "go", 'g', com_go, 0, gettext_noop("Send command to drizzle server.") },
270
{ "help", 'h', com_help, 1, gettext_noop("Display this help.") },
271
{ "nopager",'n', com_nopager,0, gettext_noop("Disable pager, print to stdout.") },
272
{ "notee", 't', com_notee, 0, gettext_noop("Don't write into outfile.") },
267
N_("Send command to drizzle server, display result vertically.")},
268
{ "exit", 'q', com_quit, 0, N_("Exit drizzle. Same as quit.")},
269
{ "go", 'g', com_go, 0, N_("Send command to drizzle server.") },
270
{ "help", 'h', com_help, 1, N_("Display this help.") },
271
{ "nopager",'n', com_nopager,0, N_("Disable pager, print to stdout.") },
272
{ "notee", 't', com_notee, 0, N_("Don't write into outfile.") },
273
273
{ "pager", 'P', com_pager, 1,
274
gettext_noop("Set PAGER [to_pager]. Print the query results via PAGER.") },
275
{ "print", 'p', com_print, 0, gettext_noop("Print current command.") },
276
{ "prompt", 'R', com_prompt, 1, gettext_noop("Change your drizzle prompt.")},
277
{ "quit", 'q', com_quit, 0, gettext_noop("Quit drizzle.") },
278
{ "rehash", '#', com_rehash, 0, gettext_noop("Rebuild completion hash.") },
274
N_("Set PAGER [to_pager]. Print the query results via PAGER.") },
275
{ "print", 'p', com_print, 0, N_("Print current command.") },
276
{ "prompt", 'R', com_prompt, 1, N_("Change your drizzle prompt.")},
277
{ "quit", 'q', com_quit, 0, N_("Quit drizzle.") },
278
{ "rehash", '#', com_rehash, 0, N_("Rebuild completion hash.") },
279
279
{ "source", '.', com_source, 1,
280
gettext_noop("Execute an SQL script file. Takes a file name as an argument.")},
281
{ "status", 's', com_status, 0, gettext_noop("Get status information from the server.")},
280
N_("Execute an SQL script file. Takes a file name as an argument.")},
281
{ "status", 's', com_status, 0, N_("Get status information from the server.")},
282
282
{ "tee", 'T', com_tee, 1,
283
gettext_noop("Set outfile [to_outfile]. Append everything into given outfile.") },
283
N_("Set outfile [to_outfile]. Append everything into given outfile.") },
284
284
{ "use", 'u', com_use, 1,
285
gettext_noop("Use another database. Takes database name as argument.") },
285
N_("Use another database. Takes database name as argument.") },
286
286
{ "charset", 'C', com_charset, 1,
287
gettext_noop("Switch to another charset. Might be needed for processing binlog with multi-byte charsets.") },
287
N_("Switch to another charset. Might be needed for processing binlog with multi-byte charsets.") },
288
288
{ "warnings", 'W', com_warnings, 0,
289
gettext_noop("Show warnings after every statement.") },
289
N_("Show warnings after every statement.") },
290
290
{ "nowarning", 'w', com_nowarnings, 0,
291
gettext_noop("Don't show warnings after every statement.") },
291
N_("Don't show warnings after every statement.") },
292
292
/* Get bash-like expansion for some commands */
293
293
{ "create table", 0, 0, 0, ""},
294
294
{ "create database", 0, 0, 0, ""},
1282
1282
static struct my_option my_long_options[] =
1284
{"help", '?', gettext_noop("Display this help and exit."), 0, 0, 0, GET_NO_ARG, NO_ARG, 0,
1284
{"help", '?', N_("Display this help and exit."), 0, 0, 0, GET_NO_ARG, NO_ARG, 0,
1285
1285
0, 0, 0, 0, 0},
1286
{"help", 'I', gettext_noop("Synonym for -?"), 0, 0, 0, GET_NO_ARG, NO_ARG, 0,
1286
{"help", 'I', N_("Synonym for -?"), 0, 0, 0, GET_NO_ARG, NO_ARG, 0,
1287
1287
0, 0, 0, 0, 0},
1288
1288
{"auto-rehash", OPT_AUTO_REHASH,
1289
gettext_noop("Enable automatic rehashing. One doesn't need to use 'rehash' to get table and field completion, but startup and reconnecting may take a longer time. Disable with --disable-auto-rehash."),
1289
N_("Enable automatic rehashing. One doesn't need to use 'rehash' to get table and field completion, but startup and reconnecting may take a longer time. Disable with --disable-auto-rehash."),
1290
1290
(char**) &opt_rehash, (char**) &opt_rehash, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0,
1292
1292
{"no-auto-rehash", 'A',
1293
gettext_noop("No automatic rehashing. One has to use 'rehash' to get table and field completion. This gives a quicker start of DRIZZLE and disables rehashing on reconnect. WARNING: options deprecated; use --disable-auto-rehash instead."),
1293
N_("No automatic rehashing. One has to use 'rehash' to get table and field completion. This gives a quicker start of DRIZZLE and disables rehashing on reconnect. WARNING: options deprecated; use --disable-auto-rehash instead."),
1294
1294
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1295
1295
{"auto-vertical-output", OPT_AUTO_VERTICAL_OUTPUT,
1296
gettext_noop("Automatically switch to vertical output mode if the result is wider than the terminal width."),
1296
N_("Automatically switch to vertical output mode if the result is wider than the terminal width."),
1297
1297
(char**) &auto_vertical_output, (char**) &auto_vertical_output, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1299
gettext_noop("Don't use history file. Disable interactive behavior. (Enables --silent)"), 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1299
N_("Don't use history file. Disable interactive behavior. (Enables --silent)"), 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1300
1300
{"character-sets-dir", OPT_CHARSETS_DIR,
1301
gettext_noop("Directory where character sets are."), (char**) &charsets_dir,
1301
N_("Directory where character sets are."), (char**) &charsets_dir,
1302
1302
(char**) &charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1303
{"column-type-info", OPT_COLUMN_TYPES, gettext_noop("Display column type information."),
1303
{"column-type-info", OPT_COLUMN_TYPES, N_("Display column type information."),
1304
1304
(char**) &column_types_flag, (char**) &column_types_flag,
1305
1305
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1306
{"comments", 'c', gettext_noop("Preserve comments. Send comments to the server. The default is --skip-comments (discard comments), enable with --comments"),
1306
{"comments", 'c', N_("Preserve comments. Send comments to the server. The default is --skip-comments (discard comments), enable with --comments"),
1307
1307
(char**) &preserve_comments, (char**) &preserve_comments,
1308
1308
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1309
{"compress", 'C', gettext_noop("Use compression in server/client protocol."),
1309
{"compress", 'C', N_("Use compression in server/client protocol."),
1310
1310
(char**) &opt_compress, (char**) &opt_compress, 0, GET_BOOL, NO_ARG, 0, 0, 0,
1312
{"debug-check", OPT_DEBUG_CHECK, gettext_noop("Check memory and open file usage at exit ."),
1312
{"debug-check", OPT_DEBUG_CHECK, N_("Check memory and open file usage at exit ."),
1313
1313
(char**) &debug_check_flag, (char**) &debug_check_flag, 0,
1314
1314
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1315
{"debug-info", 'T', gettext_noop("Print some debug info at exit."), (char**) &debug_info_flag,
1315
{"debug-info", 'T', N_("Print some debug info at exit."), (char**) &debug_info_flag,
1316
1316
(char**) &debug_info_flag, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1317
{"database", 'D', gettext_noop("Database to use."), (char**) ¤t_db,
1317
{"database", 'D', N_("Database to use."), (char**) ¤t_db,
1318
1318
(char**) ¤t_db, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1319
1319
{"default-character-set", OPT_DEFAULT_CHARSET,
1320
gettext_noop("Set the default character set."), (char**) &default_charset,
1320
N_("Set the default character set."), (char**) &default_charset,
1321
1321
(char**) &default_charset, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1322
{"delimiter", OPT_DELIMITER, gettext_noop("Delimiter to be used."), (char**) &delimiter_str,
1322
{"delimiter", OPT_DELIMITER, N_("Delimiter to be used."), (char**) &delimiter_str,
1323
1323
(char**) &delimiter_str, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1324
{"execute", 'e', gettext_noop("Execute command and quit. (Disables --force and history file)"), 0,
1324
{"execute", 'e', N_("Execute command and quit. (Disables --force and history file)"), 0,
1325
1325
0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1326
{"vertical", 'E', gettext_noop("Print the output of a query (rows) vertically."),
1326
{"vertical", 'E', N_("Print the output of a query (rows) vertically."),
1327
1327
(char**) &vertical, (char**) &vertical, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0,
1329
{"force", 'f', gettext_noop("Continue even if we get an sql error."),
1329
{"force", 'f', N_("Continue even if we get an sql error."),
1330
1330
(char**) &ignore_errors, (char**) &ignore_errors, 0, GET_BOOL, NO_ARG, 0, 0,
1332
1332
{"named-commands", 'G',
1333
gettext_noop("Enable named commands. Named commands mean this program's internal commands; see drizzle> help . When enabled, the named commands can be used from any line of the query, otherwise only from the first line, before an enter. Disable with --disable-named-commands. This option is disabled by default."),
1333
N_("Enable named commands. Named commands mean this program's internal commands; see drizzle> help . When enabled, the named commands can be used from any line of the query, otherwise only from the first line, before an enter. Disable with --disable-named-commands. This option is disabled by default."),
1334
1334
(char**) &named_cmds, (char**) &named_cmds, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
1336
1336
{"no-named-commands", 'g',
1337
gettext_noop("Named commands are disabled. Use \\* form only, or use named commands only in the beginning of a line ending with a semicolon (;) Since version 10.9 the client now starts with this option ENABLED by default! Disable with '-G'. Long format commands still work from the first line. WARNING: option deprecated; use --disable-named-commands instead."),
1337
N_("Named commands are disabled. Use \\* form only, or use named commands only in the beginning of a line ending with a semicolon (;) Since version 10.9 the client now starts with this option ENABLED by default! Disable with '-G'. Long format commands still work from the first line. WARNING: option deprecated; use --disable-named-commands instead."),
1338
1338
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1339
{"ignore-spaces", 'i', gettext_noop("Ignore space after function names."), 0, 0, 0,
1339
{"ignore-spaces", 'i', N_("Ignore space after function names."), 0, 0, 0,
1340
1340
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1341
{"local-infile", OPT_LOCAL_INFILE, gettext_noop("Enable/disable LOAD DATA LOCAL INFILE."),
1341
{"local-infile", OPT_LOCAL_INFILE, N_("Enable/disable LOAD DATA LOCAL INFILE."),
1342
1342
(char**) &opt_local_infile,
1343
1343
(char**) &opt_local_infile, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
1344
{"no-beep", 'b', gettext_noop("Turn off beep on error."), (char**) &opt_nobeep,
1344
{"no-beep", 'b', N_("Turn off beep on error."), (char**) &opt_nobeep,
1345
1345
(char**) &opt_nobeep, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1346
{"host", 'h', gettext_noop("Connect to host."), (char**) ¤t_host,
1346
{"host", 'h', N_("Connect to host."), (char**) ¤t_host,
1347
1347
(char**) ¤t_host, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1348
{"html", 'H', gettext_noop("Produce HTML output."), (char**) &opt_html, (char**) &opt_html,
1348
{"html", 'H', N_("Produce HTML output."), (char**) &opt_html, (char**) &opt_html,
1349
1349
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1350
{"xml", 'X', gettext_noop("Produce XML output"), (char**) &opt_xml, (char**) &opt_xml, 0,
1350
{"xml", 'X', N_("Produce XML output"), (char**) &opt_xml, (char**) &opt_xml, 0,
1351
1351
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1352
{"line-numbers", OPT_LINE_NUMBERS, gettext_noop("Write line numbers for errors."),
1352
{"line-numbers", OPT_LINE_NUMBERS, N_("Write line numbers for errors."),
1353
1353
(char**) &line_numbers, (char**) &line_numbers, 0, GET_BOOL,
1354
1354
NO_ARG, 1, 0, 0, 0, 0, 0},
1355
{"skip-line-numbers", 'L', gettext_noop("Don't write line number for errors. WARNING: -L is deprecated, use long version of this option instead."), 0, 0, 0, GET_NO_ARG,
1355
{"skip-line-numbers", 'L', N_("Don't write line number for errors. WARNING: -L is deprecated, use long version of this option instead."), 0, 0, 0, GET_NO_ARG,
1356
1356
NO_ARG, 0, 0, 0, 0, 0, 0},
1357
{"unbuffered", 'n', gettext_noop("Flush buffer after each query."), (char**) &unbuffered,
1357
{"unbuffered", 'n', N_("Flush buffer after each query."), (char**) &unbuffered,
1358
1358
(char**) &unbuffered, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1359
{"column-names", OPT_COLUMN_NAMES, gettext_noop("Write column names in results."),
1359
{"column-names", OPT_COLUMN_NAMES, N_("Write column names in results."),
1360
1360
(char**) &column_names, (char**) &column_names, 0, GET_BOOL,
1361
1361
NO_ARG, 1, 0, 0, 0, 0, 0},
1362
1362
{"skip-column-names", 'N',
1363
gettext_noop("Don't write column names in results. WARNING: -N is deprecated, use long version of this options instead."),
1363
N_("Don't write column names in results. WARNING: -N is deprecated, use long version of this options instead."),
1364
1364
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1365
1365
{"set-variable", 'O',
1366
gettext_noop("Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value."),
1366
N_("Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value."),
1367
1367
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1368
{"sigint-ignore", OPT_SIGINT_IGNORE, gettext_noop("Ignore SIGINT (CTRL-C)"),
1368
{"sigint-ignore", OPT_SIGINT_IGNORE, N_("Ignore SIGINT (CTRL-C)"),
1369
1369
(char**) &opt_sigint_ignore, (char**) &opt_sigint_ignore, 0, GET_BOOL,
1370
1370
NO_ARG, 0, 0, 0, 0, 0, 0},
1371
1371
{"one-database", 'o',
1372
gettext_noop("Only update the default database. This is useful for skipping updates to other database in the update log."),
1372
N_("Only update the default database. This is useful for skipping updates to other database in the update log."),
1373
1373
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1374
1374
{"pager", OPT_PAGER,
1375
gettext_noop("Pager to use to display results. If you don't supply an option the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default."),
1375
N_("Pager to use to display results. If you don't supply an option the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default."),
1376
1376
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
1377
1377
{"no-pager", OPT_NOPAGER,
1378
gettext_noop("Disable pager and print to stdout. See interactive help (\\h) also. WARNING: option deprecated; use --disable-pager instead."),
1378
N_("Disable pager and print to stdout. See interactive help (\\h) also. WARNING: option deprecated; use --disable-pager instead."),
1379
1379
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1380
1380
{"password", 'p',
1381
gettext_noop("Password to use when connecting to server. If password is not given it's asked from the tty."),
1381
N_("Password to use when connecting to server. If password is not given it's asked from the tty."),
1382
1382
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
1383
{"port", 'P', gettext_noop("Port number to use for connection or 0 for default to, in order of preference, my.cnf, $MYSQL_TCP_PORT, ")
1383
{"port", 'P', N_("Port number to use for connection or 0 for default to, in order of preference, my.cnf, $MYSQL_TCP_PORT, ")
1384
1384
#if MYSQL_PORT_DEFAULT == 0
1385
1385
"/etc/services, "
1387
gettext_noop("built-in default") " (" STRINGIFY_ARG(MYSQL_PORT) ").",
1387
N_("built-in default") " (" STRINGIFY_ARG(MYSQL_PORT) ").",
1388
1388
(char**) &opt_drizzle_port,
1389
1389
(char**) &opt_drizzle_port, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1390
{"prompt", OPT_PROMPT, gettext_noop("Set the drizzle prompt to this value."),
1390
{"prompt", OPT_PROMPT, N_("Set the drizzle prompt to this value."),
1391
1391
(char**) ¤t_prompt, (char**) ¤t_prompt, 0, GET_STR_ALLOC,
1392
1392
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1393
{"protocol", OPT_DRIZZLE_PROTOCOL, gettext_noop("The protocol of connection (tcp,socket,pipe,memory)."),
1393
{"protocol", OPT_DRIZZLE_PROTOCOL, N_("The protocol of connection (tcp,socket,pipe,memory)."),
1394
1394
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1396
gettext_noop("Don't cache result, print it row by row. This may slow down the server if the output is suspended. Doesn't use history file."),
1396
N_("Don't cache result, print it row by row. This may slow down the server if the output is suspended. Doesn't use history file."),
1397
1397
(char**) &quick, (char**) &quick, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1398
{"raw", 'r', gettext_noop("Write fields without conversion. Used with --batch."),
1398
{"raw", 'r', N_("Write fields without conversion. Used with --batch."),
1399
1399
(char**) &opt_raw_data, (char**) &opt_raw_data, 0, GET_BOOL, NO_ARG, 0, 0, 0,
1401
{"reconnect", OPT_RECONNECT, gettext_noop("Reconnect if the connection is lost. Disable with --disable-reconnect. This option is enabled by default."),
1401
{"reconnect", OPT_RECONNECT, N_("Reconnect if the connection is lost. Disable with --disable-reconnect. This option is enabled by default."),
1402
1402
(char**) &opt_reconnect, (char**) &opt_reconnect, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
1403
{"silent", 's', gettext_noop("Be more silent. Print results with a tab as separator, each row on new line."), 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0,
1403
{"silent", 's', N_("Be more silent. Print results with a tab as separator, each row on new line."), 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0,
1405
{"socket", 'S', gettext_noop("Socket file to use for connection."),
1405
{"socket", 'S', N_("Socket file to use for connection."),
1406
1406
(char**) &opt_drizzle_unix_port, (char**) &opt_drizzle_unix_port, 0, GET_STR_ALLOC,
1407
1407
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1408
{"table", 't', gettext_noop("Output in table format."), (char**) &output_tables,
1408
{"table", 't', N_("Output in table format."), (char**) &output_tables,
1409
1409
(char**) &output_tables, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1410
1410
{"tee", OPT_TEE,
1411
gettext_noop("Append everything into outfile. See interactive help (\\h) also. Does not work in batch mode. Disable with --disable-tee. This option is disabled by default."),
1411
N_("Append everything into outfile. See interactive help (\\h) also. Does not work in batch mode. Disable with --disable-tee. This option is disabled by default."),
1412
1412
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1413
{"no-tee", OPT_NOTEE, gettext_noop("Disable outfile. See interactive help (\\h) also. WARNING: option deprecated; use --disable-tee instead"), 0, 0, 0, GET_NO_ARG,
1413
{"no-tee", OPT_NOTEE, N_("Disable outfile. See interactive help (\\h) also. WARNING: option deprecated; use --disable-tee instead"), 0, 0, 0, GET_NO_ARG,
1414
1414
NO_ARG, 0, 0, 0, 0, 0, 0},
1415
1415
#ifndef DONT_ALLOW_USER_CHANGE
1416
{"user", 'u', gettext_noop("User for login if not current user."), (char**) ¤t_user,
1416
{"user", 'u', N_("User for login if not current user."), (char**) ¤t_user,
1417
1417
(char**) ¤t_user, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1419
{"safe-updates", 'U', gettext_noop("Only allow UPDATE and DELETE that uses keys."),
1420
(char**) &safe_updates, (char**) &safe_updates, 0, GET_BOOL, NO_ARG, 0, 0,
1422
{"i-am-a-dummy", 'U', gettext_noop("Synonym for option --safe-updates, -U."),
1423
(char**) &safe_updates, (char**) &safe_updates, 0, GET_BOOL, NO_ARG, 0, 0,
1425
{"verbose", 'v', gettext_noop("Write more. (-v -v -v gives the table output format)."), 0,
1419
{"safe-updates", 'U', N_("Only allow UPDATE and DELETE that uses keys."),
1420
(char**) &safe_updates, (char**) &safe_updates, 0, GET_BOOL, NO_ARG, 0, 0,
1422
{"i-am-a-dummy", 'U', N_("Synonym for option --safe-updates, -U."),
1423
(char**) &safe_updates, (char**) &safe_updates, 0, GET_BOOL, NO_ARG, 0, 0,
1425
{"verbose", 'v', N_("Write more. (-v -v -v gives the table output format)."), 0,
1426
1426
0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1427
{"version", 'V', gettext_noop("Output version information and exit."), 0, 0, 0,
1427
{"version", 'V', N_("Output version information and exit."), 0, 0, 0,
1428
1428
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1429
{"wait", 'w', gettext_noop("Wait and retry if connection is down."), 0, 0, 0, GET_NO_ARG,
1429
{"wait", 'w', N_("Wait and retry if connection is down."), 0, 0, 0, GET_NO_ARG,
1430
1430
NO_ARG, 0, 0, 0, 0, 0, 0},
1431
1431
{"connect_timeout", OPT_CONNECT_TIMEOUT,
1432
gettext_noop("Number of seconds before connection timeout."),
1432
N_("Number of seconds before connection timeout."),
1433
1433
(char**) &opt_connect_timeout,
1434
1434
(char**) &opt_connect_timeout, 0, GET_ULONG, REQUIRED_ARG, 0, 0, 3600*12, 0,
1436
1436
{"max_allowed_packet", OPT_MAX_ALLOWED_PACKET,
1437
gettext_noop("Max packet length to send to, or receive from server"),
1437
N_("Max packet length to send to, or receive from server"),
1438
1438
(char**) &opt_max_allowed_packet, (char**) &opt_max_allowed_packet, 0,
1439
1439
GET_ULONG, REQUIRED_ARG, 16 *1024L*1024L, 4096,
1440
1440
(int64_t) 2*1024L*1024L*1024L, MALLOC_OVERHEAD, 1024, 0},
1441
1441
{"net_buffer_length", OPT_NET_BUFFER_LENGTH,
1442
gettext_noop("Buffer for TCP/IP and socket communication"),
1442
N_("Buffer for TCP/IP and socket communication"),
1443
1443
(char**) &opt_net_buffer_length, (char**) &opt_net_buffer_length, 0, GET_ULONG,
1444
1444
REQUIRED_ARG, 16384, 1024, 512*1024*1024L, MALLOC_OVERHEAD, 1024, 0},
1445
1445
{"select_limit", OPT_SELECT_LIMIT,
1446
gettext_noop("Automatic limit for SELECT when using --safe-updates"),
1446
N_("Automatic limit for SELECT when using --safe-updates"),
1447
1447
(char**) &select_limit,
1448
1448
(char**) &select_limit, 0, GET_ULONG, REQUIRED_ARG, 1000L, 1, ULONG_MAX,
1450
1450
{"max_join_size", OPT_MAX_JOIN_SIZE,
1451
gettext_noop("Automatic limit for rows in a join when using --safe-updates"),
1451
N_("Automatic limit for rows in a join when using --safe-updates"),
1452
1452
(char**) &max_join_size,
1453
1453
(char**) &max_join_size, 0, GET_ULONG, REQUIRED_ARG, 1000000L, 1, ULONG_MAX,
1455
{"secure-auth", OPT_SECURE_AUTH, gettext_noop("Refuse client connecting to server if it uses old (pre-4.1.1) protocol"), (char**) &opt_secure_auth,
1455
{"secure-auth", OPT_SECURE_AUTH, N_("Refuse client connecting to server if it uses old (pre-4.1.1) protocol"), (char**) &opt_secure_auth,
1456
1456
(char**) &opt_secure_auth, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1457
{"server-arg", OPT_SERVER_ARG, gettext_noop("Send embedded server this as a parameter."),
1457
{"server-arg", OPT_SERVER_ARG, N_("Send embedded server this as a parameter."),
1458
1458
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1459
{"show-warnings", OPT_SHOW_WARNINGS, gettext_noop("Show warnings after every statement."),
1459
{"show-warnings", OPT_SHOW_WARNINGS, N_("Show warnings after every statement."),
1460
1460
(char**) &show_warnings, (char**) &show_warnings, 0, GET_BOOL, NO_ARG,
1461
1461
0, 0, 0, 0, 0, 0},
1462
1462
{ 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}