1294
1294
("force,f", po::value<bool>(&ignore_errors)->default_value(false)->zero_tokens(),
1295
1295
N_("Continue even if we get an sql error."))
1296
1296
("named-commands,G", po::value<bool>(&named_cmds)->default_value(false)->zero_tokens(),
1297
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."))
1298
("no-named-commands,g",
1299
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."))
1297
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."))
1300
1298
("ignore-spaces,i", N_("Ignore space after function names."))
1301
1299
("no-beep,b", po::value<bool>(&opt_nobeep)->default_value(false)->zero_tokens(),
1302
1300
N_("Turn off beep on error."))
1303
("line-numbers", po::value<bool>(&line_numbers)->default_value(true)->zero_tokens(),
1304
N_("Write line numbers for errors."))
1301
("disable-line-numbers", N_("Do not write line numbers for errors."))
1305
1302
("skip-line-numbers,L",
1306
1303
N_("Don't write line number for errors. WARNING: -L is deprecated, use long version of this option instead."))
1307
("column-name", po::value<bool>(&column_names)->default_value(true)->zero_tokens(),
1308
N_("Write column names in results."))
1304
("disable-column-names", N_("Do not write column names in results."))
1309
1305
("skip-column-names,N",
1310
1306
N_("Don't write column names in results. WARNING: -N is deprecated, use long version of this options instead."))
1311
1307
("set-variable,O", po::value<string>(),
1312
1308
N_("Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value."))
1313
1309
("table,t", po::value<bool>(&output_tables)->default_value(false)->zero_tokens(),
1314
1310
N_("Output in table format."))
1315
("safe-updates,U", po::value<bool>(&safe_updates)->default_value(0)->zero_tokens(),
1311
("safe-updates,U", po::value<bool>(&safe_updates)->default_value(false)->zero_tokens(),
1316
1312
N_("Only allow UPDATE and DELETE that uses keys."))
1317
("i-am-a-dummy,U", po::value<bool>(&safe_updates)->default_value(0)->zero_tokens(),
1313
("i-am-a-dummy,U", po::value<bool>(&safe_updates)->default_value(false)->zero_tokens(),
1318
1314
N_("Synonym for option --safe-updates, -U."))
1319
1315
("verbose,v", po::value<string>(&opt_verbose)->default_value(""),
1320
1316
N_("-v vvv implies that verbose= 3, Used to specify verbose"))
1334
1330
po::options_description drizzle_options(N_("Options specific to the drizzle client"));
1335
1331
drizzle_options.add_options()
1336
("auto-rehash", po::value<bool>(&opt_rehash)->default_value(true)->zero_tokens(),
1337
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."))
1338
("no-auto-rehash,A",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."))
1332
("disable-auto-rehash",
1333
N_("Disable automatic rehashing. One doesn't need to use 'rehash' to get table and field completion, but startup and reconnecting may take a longer time."))
1339
1334
("auto-vertical-output", po::value<bool>(&auto_vertical_output)->default_value(false)->zero_tokens(),
1340
1335
N_("Automatically switch to vertical output mode if the result is wider than the terminal width."))
1341
1336
("database,D", po::value<string>(¤t_db)->default_value(""),
1347
1342
("execute,e", po::value<string>(),
1348
1343
N_("Execute command and quit. (Disables --force and history file)"))
1349
1344
("local-infile", po::value<bool>(&opt_local_infile)->default_value(false)->zero_tokens(),
1350
N_("Enable/disable LOAD DATA LOCAL INFILE."))
1345
N_("Enable LOAD DATA LOCAL INFILE."))
1351
1346
("unbuffered,n", po::value<bool>(&unbuffered)->default_value(false)->zero_tokens(),
1352
1347
N_("Flush buffer after each query."))
1353
1348
("sigint-ignore", po::value<bool>(&opt_sigint_ignore)->default_value(false)->zero_tokens(),
1364
1359
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."))
1365
1360
("raw,r", po::value<bool>(&opt_raw_data)->default_value(false)->zero_tokens(),
1366
1361
N_("Write fields without conversion. Used with --batch."))
1367
("reconnect", po::value<bool>(&opt_reconnect)->default_value(true)->zero_tokens(),
1368
N_("Reconnect if the connection is lost. Disable with --disable-reconnect. This option is enabled by default."))
1362
("disable-reconnect", N_("Do not reconnect if the connection is lost."))
1369
1363
("shutdown", po::value<bool>(&opt_shutdown)->default_value(false)->zero_tokens(),
1370
1364
N_("Shutdown the server"))
1371
1365
("silent,s", N_("Be more silent. Print results with a tab as separator, each row on new line."))