• Home
  • Raw
  • Download

Lines Matching refs:optarg

613                     if (!ParseUint(optarg, &pid) || pid < 1) {  in Run()
615 long_options[option_index].name, optarg); in Run()
623 if (optarg && (!ParseUint(optarg, &timeout) || timeout < 1)) { in Run()
625 long_options[option_index].name, optarg); in Run()
643 setId = (optarg && optarg[0]) ? optarg : nullptr; in Run()
646 auto uid_strings = Split(optarg, delimiters); in Run()
680 if (strspn(optarg, "0123456789") != strlen(optarg)) { in Run()
681 char* cp = parseTime(tail_time, optarg); in Run()
683 error(EXIT_FAILURE, 0, "-%c '%s' not in time format.", c, optarg); in Run()
688 fprintf(stderr, "WARNING: -%c '%s' '%c%s' time truncated\n", c, optarg, ch, in Run()
693 if (!ParseUint(optarg, &tail_lines) || tail_lines < 1) { in Run()
694 fprintf(stderr, "WARNING: -%c %s invalid, setting to 1\n", c, optarg); in Run()
705 regex_.reset(new std::regex(optarg)); in Run()
709 if (!ParseUint(optarg, &max_count_) || max_count_ < 1) { in Run()
711 optarg); in Run()
716 if (!optarg) { in Run()
723 if (!ParseByteCount(optarg, &setLogSize) || setLogSize < 1) { in Run()
729 if (!optarg) { in Run()
736 setPruneList = optarg; in Run()
740 for (const auto& buffer : Split(optarg, delimiters)) { in Run()
765 tail_time = lastLogTime(optarg); in Run()
768 output_file_name_ = optarg; in Run()
772 if (!ParseUint(optarg, &log_rotate_size_kb_) || log_rotate_size_kb_ < 1) { in Run()
773 error(EXIT_FAILURE, 0, "Invalid parameter '%s' to -r.", optarg); in Run()
778 if (!ParseUint(optarg, &max_rotated_logs_) || max_rotated_logs_ < 1) { in Run()
779 error(EXIT_FAILURE, 0, "Invalid parameter '%s' to -n.", optarg); in Run()
784 if (!strcmp(optarg, "help") || !strcmp(optarg, "--help")) { in Run()
788 for (const auto& arg : Split(optarg, delimiters)) { in Run()