Lines Matching refs:optarg
610 if (!ParseUint(optarg, &pid) || pid < 1) { in Run()
612 long_options[option_index].name, optarg); in Run()
620 if (optarg && (!ParseUint(optarg, &timeout) || timeout < 1)) { in Run()
622 long_options[option_index].name, optarg); in Run()
640 setId = (optarg && optarg[0]) ? optarg : nullptr; in Run()
643 auto uid_strings = Split(optarg, delimiters); in Run()
677 if (strspn(optarg, "0123456789") != strlen(optarg)) { in Run()
678 char* cp = parseTime(tail_time, optarg); in Run()
680 error(EXIT_FAILURE, 0, "-%c '%s' not in time format.", c, optarg); in Run()
685 fprintf(stderr, "WARNING: -%c '%s' '%c%s' time truncated\n", c, optarg, ch, in Run()
690 if (!ParseUint(optarg, &tail_lines) || tail_lines < 1) { in Run()
691 fprintf(stderr, "WARNING: -%c %s invalid, setting to 1\n", c, optarg); in Run()
702 regex_.reset(new std::regex(optarg)); in Run()
706 if (!ParseUint(optarg, &max_count_) || max_count_ < 1) { in Run()
708 optarg); in Run()
713 if (!optarg) { in Run()
720 if (!ParseByteCount(optarg, &setLogSize) || setLogSize < 1) { in Run()
726 if (!optarg) { in Run()
733 setPruneList = optarg; in Run()
737 for (const auto& buffer : Split(optarg, delimiters)) { in Run()
762 tail_time = lastLogTime(optarg); in Run()
765 output_file_name_ = optarg; in Run()
769 if (!ParseUint(optarg, &log_rotate_size_kb_) || log_rotate_size_kb_ < 1) { in Run()
770 error(EXIT_FAILURE, 0, "Invalid parameter '%s' to -r.", optarg); in Run()
775 if (!ParseUint(optarg, &max_rotated_logs_) || max_rotated_logs_ < 1) { in Run()
776 error(EXIT_FAILURE, 0, "Invalid parameter '%s' to -n.", optarg); in Run()
781 if (!strcmp(optarg, "help") || !strcmp(optarg, "--help")) { in Run()
785 for (const auto& arg : Split(optarg, delimiters)) { in Run()