17 po::options_description control(
"Rootify SQL");
19 (
"uri,u", var<string>()->required(),
"Database link as in\n\tuser:password@server[:port]/database.")
20 (
"query,q", var<string>(
""),
"MySQL query (overwrites --file)")
21 (
"file", var<string>(
"rootify.sql"),
"An ASCII file with the MySQL query (overwrites --query)")
22 (
"ignore-null,i",
po_switch(),
"Do not skip rows containing any NULL field")
23 (
"out,o", var<string>(
"rootify.root"),
"Output root file name")
24 (
"force,f",
po_switch(),
"Force overwriting an existing root file ('RECREATE')")
25 (
"update",
po_switch(),
"Update an existing root file with the new tree ('UPDATE')")
26 (
"compression,c", var<uint16_t>(1),
"zlib compression level for the root file")
27 (
"tree,t", var<string>(
"Result"),
"Name of the root tree")
28 (
"display,d",
po_switch(),
"Displays contents on the screen (most usefull in combination with mysql statements as SHOW or EXPLAIN)")
29 (
"null,n",
po_switch(),
"Redirect the output file to /dev/null")
30 (
"delimiter", var<string>(
""),
"The delimiter used if contents are displayed with --display (default=\\t)")
31 (
"verbose,v", var<uint16_t>(1),
"Verbosity (0: quiet, 1: default, 2: more, 3, ...)")
34 po::positional_options_description
p;
po::typed_value< bool > * po_switch()
void SetArgumentPositions(const po::positional_options_description &desc)
void AddOptions(const po::options_description &opt, bool visible=true)