1421
static struct option my_long_options[] =
1421
static struct my_option my_long_options[] =
1423
1423
{"help", '?', N_("Display this help and exit."), 0, 0, 0, GET_NO_ARG, NO_ARG, 0,
1425
1425
{"help", 'I', N_("Synonym for -?"), 0, 0, 0, GET_NO_ARG, NO_ARG, 0,
1427
1427
{"auto-rehash", OPT_AUTO_REHASH,
1428
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."),
1429
(char**) &opt_rehash, (char**) &opt_rehash, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0,
1428
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."),
1429
(char**) &opt_rehash, (char**) &opt_rehash, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0,
1431
1431
{"no-auto-rehash", 'A',
1432
N_("No automatic rehashing. One has to use 'rehash' to get table and field completion. This gives a quicker start of drizzle_st and disables rehashing on reconnect. WARNING: options deprecated; use --disable-auto-rehash instead."),
1433
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1432
N_("No automatic rehashing. One has to use 'rehash' to get table and field completion. This gives a quicker start of drizzle_st and disables rehashing on reconnect. WARNING: options deprecated; use --disable-auto-rehash instead."),
1433
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1434
1434
{"auto-vertical-output", OPT_AUTO_VERTICAL_OUTPUT,
1435
N_("Automatically switch to vertical output mode if the result is wider than the terminal width."),
1436
(char**) &auto_vertical_output, (char**) &auto_vertical_output, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1435
N_("Automatically switch to vertical output mode if the result is wider than the terminal width."),
1436
(char**) &auto_vertical_output, (char**) &auto_vertical_output, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1438
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},
1438
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},
1439
1439
{"column-type-info", OPT_COLUMN_TYPES, N_("Display column type information."),
1440
(char**) &column_types_flag, (char**) &column_types_flag,
1441
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1440
(char**) &column_types_flag, (char**) &column_types_flag,
1441
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1442
1442
{"comments", 'c', N_("Preserve comments. Send comments to the server. The default is --skip-comments (discard comments), enable with --comments"),
1443
(char**) &preserve_comments, (char**) &preserve_comments,
1444
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1443
(char**) &preserve_comments, (char**) &preserve_comments,
1444
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1445
1445
{"compress", 'C', N_("Use compression in server/client protocol."),
1446
(char**) &opt_compress, (char**) &opt_compress, 0, GET_BOOL, NO_ARG, 0, 0, 0,
1446
(char**) &opt_compress, (char**) &opt_compress, 0, GET_BOOL, NO_ARG, 0, 0, 0,
1448
{"debug-check", OPT_DEBUG_CHECK, N_("Check memory and open file usage at exit ."),
1449
(char**) &debug_check_flag, (char**) &debug_check_flag, 0,
1450
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1451
{"debug-info", 'T', N_("Print some debug info at exit."), (char**) &debug_info_flag,
1452
(char**) &debug_info_flag, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1448
1453
{"database", 'D', N_("Database to use."), (char**) ¤t_db,
1449
(char**) ¤t_db, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1454
(char**) ¤t_db, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1450
1455
{"default-character-set", OPT_DEFAULT_CHARSET,
1451
N_("(not used)"), 0,
1452
0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1456
N_("(not used)"), 0,
1457
0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1453
1458
{"delimiter", OPT_DELIMITER, N_("Delimiter to be used."), (char**) &delimiter_str,
1454
(char**) &delimiter_str, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1459
(char**) &delimiter_str, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1455
1460
{"execute", 'e', N_("Execute command and quit. (Disables --force and history file)"), 0,
1456
0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1461
0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1457
1462
{"vertical", 'E', N_("Print the output of a query (rows) vertically."),
1458
(char**) &vertical, (char**) &vertical, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0,
1463
(char**) &vertical, (char**) &vertical, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0,
1460
1465
{"force", 'f', N_("Continue even if we get an sql error."),
1461
(char**) &ignore_errors, (char**) &ignore_errors, 0, GET_BOOL, NO_ARG, 0, 0,
1466
(char**) &ignore_errors, (char**) &ignore_errors, 0, GET_BOOL, NO_ARG, 0, 0,
1463
1468
{"named-commands", 'G',
1464
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."),
1465
(char**) &named_cmds, (char**) &named_cmds, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
1469
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."),
1470
(char**) &named_cmds, (char**) &named_cmds, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0,
1467
1472
{"no-named-commands", 'g',
1468
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."),
1469
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1473
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."),
1474
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1470
1475
{"ignore-spaces", 'i', N_("Ignore space after function names."), 0, 0, 0,
1471
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1476
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1472
1477
{"local-infile", OPT_LOCAL_INFILE, N_("Enable/disable LOAD DATA LOCAL INFILE."),
1473
(char**) &opt_local_infile,
1474
(char**) &opt_local_infile, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
1478
(char**) &opt_local_infile,
1479
(char**) &opt_local_infile, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
1475
1480
{"no-beep", 'b', N_("Turn off beep on error."), (char**) &opt_nobeep,
1476
(char**) &opt_nobeep, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1481
(char**) &opt_nobeep, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1477
1482
{"host", 'h', N_("Connect to host."), (char**) ¤t_host,
1478
(char**) ¤t_host, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1483
(char**) ¤t_host, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1479
1484
{"line-numbers", OPT_LINE_NUMBERS, N_("Write line numbers for errors."),
1480
(char**) &line_numbers, (char**) &line_numbers, 0, GET_BOOL,
1481
NO_ARG, 1, 0, 0, 0, 0, 0},
1485
(char**) &line_numbers, (char**) &line_numbers, 0, GET_BOOL,
1486
NO_ARG, 1, 0, 0, 0, 0, 0},
1482
1487
{"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,
1483
NO_ARG, 0, 0, 0, 0, 0, 0},
1488
NO_ARG, 0, 0, 0, 0, 0, 0},
1484
1489
{"unbuffered", 'n', N_("Flush buffer after each query."), (char**) &unbuffered,
1485
(char**) &unbuffered, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1490
(char**) &unbuffered, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1486
1491
{"column-names", OPT_COLUMN_NAMES, N_("Write column names in results."),
1487
(char**) &column_names, (char**) &column_names, 0, GET_BOOL,
1488
NO_ARG, 1, 0, 0, 0, 0, 0},
1492
(char**) &column_names, (char**) &column_names, 0, GET_BOOL,
1493
NO_ARG, 1, 0, 0, 0, 0, 0},
1489
1494
{"skip-column-names", 'N',
1490
N_("Don't write column names in results. WARNING: -N is deprecated, use long version of this options instead."),
1491
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1495
N_("Don't write column names in results. WARNING: -N is deprecated, use long version of this options instead."),
1496
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1492
1497
{"set-variable", 'O',
1493
N_("Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value."),
1494
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1498
N_("Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value."),
1499
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1495
1500
{"sigint-ignore", OPT_SIGINT_IGNORE, N_("Ignore SIGINT (CTRL-C)"),
1496
(char**) &opt_sigint_ignore, (char**) &opt_sigint_ignore, 0, GET_BOOL,
1497
NO_ARG, 0, 0, 0, 0, 0, 0},
1501
(char**) &opt_sigint_ignore, (char**) &opt_sigint_ignore, 0, GET_BOOL,
1502
NO_ARG, 0, 0, 0, 0, 0, 0},
1498
1503
{"one-database", 'o',
1499
N_("Only update the default database. This is useful for skipping updates to other database in the update log."),
1500
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1504
N_("Only update the default database. This is useful for skipping updates to other database in the update log."),
1505
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1501
1506
{"pager", OPT_PAGER,
1502
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."),
1503
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
1507
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."),
1508
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
1504
1509
{"no-pager", OPT_NOPAGER,
1505
N_("Disable pager and print to stdout. See interactive help (\\h) also. WARNING: option deprecated; use --disable-pager instead."),
1506
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1510
N_("Disable pager and print to stdout. See interactive help (\\h) also. WARNING: option deprecated; use --disable-pager instead."),
1511
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1507
1512
{"password", 'P',
1508
N_("Password to use when connecting to server. If password is not given it's asked from the tty."),
1509
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
1513
N_("Password to use when connecting to server. If password is not given it's asked from the tty."),
1514
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
1510
1515
{"port", 'p', N_("Port number to use for connection or 0 for default to, in order of preference, drizzle.cnf, $DRIZZLE_TCP_PORT, ")
1511
N_("built-in default") " (" STRINGIFY_ARG(DRIZZLE_PORT) ").",
1512
0, 0, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1516
N_("built-in default") " (" STRINGIFY_ARG(DRIZZLE_PORT) ").",
1517
0, 0, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1513
1518
{"prompt", OPT_PROMPT, N_("Set the drizzle prompt to this value."),
1514
(char**) ¤t_prompt, (char**) ¤t_prompt, 0, GET_STR_ALLOC,
1515
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1519
(char**) ¤t_prompt, (char**) ¤t_prompt, 0, GET_STR_ALLOC,
1520
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1517
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."),
1518
(char**) &quick, (char**) &quick, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1522
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."),
1523
(char**) &quick, (char**) &quick, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1519
1524
{"raw", 'r', N_("Write fields without conversion. Used with --batch."),
1520
(char**) &opt_raw_data, (char**) &opt_raw_data, 0, GET_BOOL, NO_ARG, 0, 0, 0,
1525
(char**) &opt_raw_data, (char**) &opt_raw_data, 0, GET_BOOL, NO_ARG, 0, 0, 0,
1522
1527
{"reconnect", OPT_RECONNECT, N_("Reconnect if the connection is lost. Disable with --disable-reconnect. This option is enabled by default."),
1523
(char**) &opt_reconnect, (char**) &opt_reconnect, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
1528
(char**) &opt_reconnect, (char**) &opt_reconnect, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
1524
1529
{"shutdown", OPT_SHUTDOWN, N_("Shutdown the server."),
1525
(char**) &opt_shutdown, (char**) &opt_shutdown, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1530
(char**) &opt_shutdown, (char**) &opt_shutdown, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1526
1531
{"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,
1533
{"socket", 'S', N_("Socket file to use for connection."),
1534
(char**) &opt_drizzle_unix_port, (char**) &opt_drizzle_unix_port, 0, GET_STR_ALLOC,
1535
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1528
1536
{"table", 't', N_("Output in table format."), (char**) &output_tables,
1529
(char**) &output_tables, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1537
(char**) &output_tables, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1530
1538
{"tee", OPT_TEE,
1531
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."),
1532
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1539
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."),
1540
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1533
1541
{"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,
1534
NO_ARG, 0, 0, 0, 0, 0, 0},
1542
NO_ARG, 0, 0, 0, 0, 0, 0},
1543
#ifndef DONT_ALLOW_USER_CHANGE
1535
1544
{"user", 'u', N_("User for login if not current user."), (char**) ¤t_user,
1536
(char**) ¤t_user, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1545
(char**) ¤t_user, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
1537
1547
{"safe-updates", 'U', N_("Only allow UPDATE and DELETE that uses keys."),
1538
(char**) &safe_updates, (char**) &safe_updates, 0, GET_BOOL, NO_ARG, 0, 0,
1548
(char**) &safe_updates, (char**) &safe_updates, 0, GET_BOOL, NO_ARG, 0, 0,
1540
1550
{"i-am-a-dummy", 'U', N_("Synonym for option --safe-updates, -U."),
1541
(char**) &safe_updates, (char**) &safe_updates, 0, GET_BOOL, NO_ARG, 0, 0,
1551
(char**) &safe_updates, (char**) &safe_updates, 0, GET_BOOL, NO_ARG, 0, 0,
1543
1553
{"verbose", 'v', N_("Write more. (-v -v -v gives the table output format)."), 0,
1544
0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1554
0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1545
1555
{"version", 'V', N_("Output version information and exit."), 0, 0, 0,
1546
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1556
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
1547
1557
{"wait", 'w', N_("Wait and retry if connection is down."), 0, 0, 0, GET_NO_ARG,
1548
NO_ARG, 0, 0, 0, 0, 0, 0},
1558
NO_ARG, 0, 0, 0, 0, 0, 0},
1549
1559
{"connect_timeout", OPT_CONNECT_TIMEOUT,
1550
N_("Number of seconds before connection timeout."),
1551
(char**) &opt_connect_timeout,
1552
(char**) &opt_connect_timeout, 0, GET_UINT32, REQUIRED_ARG, 0, 0, 3600*12, 0,
1560
N_("Number of seconds before connection timeout."),
1561
(char**) &opt_connect_timeout,
1562
(char**) &opt_connect_timeout, 0, GET_UINT32, REQUIRED_ARG, 0, 0, 3600*12, 0,
1554
1564
{"max_input_line", OPT_MAX_INPUT_LINE,
1555
N_("Max length of input line"),
1556
(char**) &opt_max_input_line, (char**) &opt_max_input_line, 0,
1557
GET_UINT32, REQUIRED_ARG, 16 *1024L*1024L, 4096,
1558
(int64_t) 2*1024L*1024L*1024L, MALLOC_OVERHEAD, 1024, 0},
1565
N_("Max length of input line"),
1566
(char**) &opt_max_input_line, (char**) &opt_max_input_line, 0,
1567
GET_UINT32, REQUIRED_ARG, 16 *1024L*1024L, 4096,
1568
(int64_t) 2*1024L*1024L*1024L, MALLOC_OVERHEAD, 1024, 0},
1559
1569
{"select_limit", OPT_SELECT_LIMIT,
1560
N_("Automatic limit for SELECT when using --safe-updates"),
1561
(char**) &select_limit,
1562
(char**) &select_limit, 0, GET_UINT32, REQUIRED_ARG, 1000L, 1, ULONG_MAX,
1570
N_("Automatic limit for SELECT when using --safe-updates"),
1571
(char**) &select_limit,
1572
(char**) &select_limit, 0, GET_UINT32, REQUIRED_ARG, 1000L, 1, ULONG_MAX,
1564
1574
{"max_join_size", OPT_MAX_JOIN_SIZE,
1565
N_("Automatic limit for rows in a join when using --safe-updates"),
1566
(char**) &max_join_size,
1567
(char**) &max_join_size, 0, GET_UINT32, REQUIRED_ARG, 1000000L, 1, ULONG_MAX,
1575
N_("Automatic limit for rows in a join when using --safe-updates"),
1576
(char**) &max_join_size,
1577
(char**) &max_join_size, 0, GET_UINT32, REQUIRED_ARG, 1000000L, 1, ULONG_MAX,
1569
1579
{"secure-auth", OPT_SECURE_AUTH, N_("Refuse client connecting to server if it uses old (pre-4.1.1) protocol"), (char**) &opt_secure_auth,
1570
(char**) &opt_secure_auth, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1580
(char**) &opt_secure_auth, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1571
1581
{"show-warnings", OPT_SHOW_WARNINGS, N_("Show warnings after every statement."),
1572
(char**) &show_warnings, (char**) &show_warnings, 0, GET_BOOL, NO_ARG,
1582
(char**) &show_warnings, (char**) &show_warnings, 0, GET_BOOL, NO_ARG,
1574
1584
{"show-progress-size", OPT_SHOW_PROGRESS_SIZE, N_("Number of lines before each import progress report."),
1575
(char**) &show_progress_size, (char**) &show_progress_size, 0, GET_UINT32, REQUIRED_ARG,
1585
(char**) &show_progress_size, (char**) &show_progress_size, 0, GET_UINT32, REQUIRED_ARG,
1577
1587
{"ping", OPT_PING, N_("Ping the server to check if it's alive."),
1578
(char**) &opt_ping, (char**) &opt_ping, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1579
{"mysql", 'm', N_("Use MySQL Protocol."),
1580
(char**) &opt_mysql, (char**) &opt_mysql, 0, GET_BOOL, NO_ARG, 1, 0, 0,
1588
(char**) &opt_ping, (char**) &opt_ping, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
1582
1589
{ 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}