Lines Matching defs:command
45 printf("\nUsage: %s COMMAND [OPTIONS] DRIVE\n\n"
52 printf("\nFor more detailed usage, use %s COMMAND -h\n\n", progname);
59 char* command;
72 // increment optind now, so that getopt skips argv[0] in command function
73 command = argv[optind++];
75 // Find the command to invoke.
76 for (i = 0; command && i < sizeof(cmds)/sizeof(cmds[0]); ++i) {
78 if (0 == strcmp(cmds[i].name, command)) {
84 else if (0 == strncmp(cmds[i].name, command, strlen(command))) {
93 // Couldn't find a single matching command.