Lines Matching refs:optarg

544 	    ctldev = optarg;
552 rodent.button2timeout = atoi(optarg);
555 warnx("invalid argument `%s'", optarg);
561 i = sscanf(optarg, "%f,%f", &rodent.accelx, &rodent.accely);
563 warnx("invalid acceleration argument '%s'", optarg);
585 if (strcmp(optarg, "all") == 0)
587 else if (strcmp(optarg, "port") == 0)
589 else if (strcmp(optarg, "if") == 0)
591 else if (strcmp(optarg, "type") == 0)
593 else if (strcmp(optarg, "model") == 0)
596 warnx("invalid argument `%s'", optarg);
603 rodent.level = atoi(optarg);
605 warnx("invalid argument `%s'", optarg);
611 if (!r_installmap(optarg)) {
612 warnx("invalid argument `%s'", optarg);
618 rodent.portname = optarg;
622 if (strcmp(optarg, "high") == 0)
624 else if (strcmp(optarg, "medium-high") == 0)
626 else if (strcmp(optarg, "medium-low") == 0)
628 else if (strcmp(optarg, "low") == 0)
630 else if (strcmp(optarg, "default") == 0)
633 rodent.resolution = atoi(optarg);
635 warnx("invalid argument `%s'", optarg);
646 i = atoi(optarg);
648 warnx("invalid argument `%s'", optarg);
655 if (strcmp(optarg, "x") == 0)
657 else if (strcmp(optarg, "y") == 0)
660 i = atoi(optarg);
666 warnx("invalid argument `%s'", optarg);
671 debug("optind: %d, optarg: '%s'", optind, optarg);
689 rodent.clickthreshold = atoi(optarg);
692 warnx("invalid argument `%s'", optarg);
702 rodent.rate = atoi(optarg);
704 warnx("invalid argument `%s'", optarg);
710 pidfile = optarg;
722 rodent.baudrate = atoi(optarg);
724 warnx("invalid argument `%s'", optarg);
731 if (strcmp(optarg, "auto") == 0) {
738 if (strcmp(optarg, rnames[i]) == 0) {
746 warnx("no such mouse type `%s'", optarg);