Lines Matching refs:which
105 static int which = -1;
108 static void cmdhelp(int mode, int which);
170 else if (which == -1 && (tmp = getindex(Which, argv[1])) != -1)
171 which = tmp;
172 else if ((mode == -1 && which == -1) &&
175 which = tmp / M_NUM;
178 cmdhelp(mode, which);
179 else if (which != -1 && mode != -1)
190 if (mode == -1 || which == -1)
191 cmdhelp(mode, which);
197 return (cmdfunc[which][mode](argc, argv, arg1));
221 cmdhelp(int mode, int which)
223 if (which == -1)
226 fprintf(stderr, "usage:\n pw %s [add|del|mod|show|next] [help|switches/values]\n", Which[which]);
379 fprintf(stderr, "%s", help[which][mode]);
387 cmdhelp(mode, which);