40 , option_summary(false)
42 , option_create(false)
43 , option_truncate(false)
45 , option_suppress_error(false)
46 , option_verify(false)
52 static struct option long_options[]
53 = { {
"help", no_argument, 0,
'h' }, {
"print", no_argument, 0,
'p' },
54 {
"create", no_argument, 0,
'c' }, {
"truncate", no_argument, 0,
't' },
55 {
"long", no_argument, 0,
'l' }, {
"json", no_argument, 0,
'j' },
56 {
"summary", no_argument, 0,
's' }, {
"replace", required_argument, 0,
'r' },
57 {
"suppress", no_argument, 0,
'f' }, {
"verify", no_argument, 0,
'v' },
58 {
"speed", required_argument, 0,
'x' }, { 0, 0, 0, 0 } };
60 int c = getopt_long(argc, argv,
"vjpctshlfr:x:", long_options, &option_index);
78 option_truncate =
true;
90 option_summary =
true;
102 option_speed = std::strtod(optarg, 0);
103 if (option_speed <= 0)
110 option_regex.push_back(optarg);
114 option_suppress_error =
true;
122 if (option_json && (option_long || option_summary))
123 option_long = option_summary =
true;
128 option_create =
false;
129 option_truncate =
false;
138 if (
optind == (argc -1 )) {