Home | History | Annotate | Download | only in futility

Lines Matching refs:cmd

203 	const struct futil_cmd_t *const *cmd;
205 for (cmd = futil_cmds; *cmd; cmd++)
206 if (0 == strcmp((*cmd)->name, name))
207 return *cmd;
214 const struct futil_cmd_t *const *cmd;
216 for (cmd = futil_cmds; *cmd; cmd++)
217 if (vboot_version & (*cmd)->version)
219 (*cmd)->name, (*cmd)->shorthelp);
224 const struct futil_cmd_t *cmd;
228 cmd = find_command(argv[1]);
229 if (cmd) {
230 printf("\n%s - %s\n", argv[1], cmd->shorthelp);
231 if (cmd->longhelp)
232 cmd->longhelp(argv[1]);
274 int run_command(const struct futil_cmd_t *cmd, int argc, char *argv[])
276 /* Handle the "CMD --help" case ourselves */
279 (char *)cmd->name,
284 return cmd->handler(argc, argv);
301 const struct futil_cmd_t *cmd;
316 cmd = find_command(progname);
317 if (cmd)
319 return run_command(cmd, argc, argv);
358 /* For reasons I've forgotten, treat /blah/blah/CMD the same as CMD */
362 cmd = find_command(progname);
363 if (cmd)
364 return run_command(cmd, argc, argv);