Lines Matching refs:optarg
610 if (strcasecmp(optarg, "degrade") == 0) { in main()
612 } else if (strcasecmp(optarg, "fault") == 0) { in main()
616 "must be 'degrade' or 'fault'\n", optarg); in main()
622 raw = optarg; in main()
625 cancel = optarg; in main()
628 device = optarg; in main()
631 record.zi_timer = strtoull(optarg, &end, 10); in main()
634 "value: '%s'\n", optarg); in main()
640 if (strcasecmp(optarg, "io") == 0) { in main()
642 } else if (strcasecmp(optarg, "checksum") == 0) { in main()
644 } else if (strcasecmp(optarg, "nxio") == 0) { in main()
646 } else if (strcasecmp(optarg, "dtl") == 0) { in main()
651 "'nxio'\n", optarg); in main()
657 record.zi_freq = atoi(optarg); in main()
669 record.zi_duration = (int)strtol(optarg, &end, 10); in main()
672 "must be a positive integer\n", optarg); in main()
689 level = (int)strtol(optarg, &end, 10); in main()
692 "must be an integer\n", optarg); in main()
701 (void) strlcpy(record.zi_func, optarg, in main()
709 range = optarg; in main()
713 record.zi_duration = (int)strtol(optarg, &end, 10); in main()
716 "must be a positive integer\n", optarg); in main()
722 if (strcasecmp(optarg, "read") == 0) { in main()
724 } else if (strcasecmp(optarg, "write") == 0) { in main()
726 } else if (strcasecmp(optarg, "free") == 0) { in main()
728 } else if (strcasecmp(optarg, "claim") == 0) { in main()
730 } else if (strcasecmp(optarg, "all") == 0) { in main()
735 "'claim' or 'all'\n", optarg); in main()
741 if ((type = name_to_type(optarg)) == TYPE_INVAL && in main()
744 optarg); in main()
753 if ((label = name_to_type(optarg)) == TYPE_INVAL && in main()
756 "'%s'\n", optarg); in main()