Lines Matching refs:toys
35 #include "toys.h"
316 while (*toys.optargs) {
320 if (strcmp(t->cmd, *toys.optargs)) continue;
322 toys.optargs++, toys.optc--;
323 if (toys.optc < t->nargs) help_exit("check args");
324 t->f(toys.optargs);
325 toys.optargs += t->nargs;
326 toys.optc -= t->nargs;
330 if (i == ARRAY_LEN(cc)) help_exit("invalid option '%s'", *toys.optargs);