Lines Matching defs:commands
49 static struct Command commands[] = {
51 * avoid short commands different for the case only
220 for( cp = commands; cp->verb; cp++ )
224 printf("\n\t%s <cmd> --help\n\t\tShow detailed help for a command or subset of commands.\n",np);
228 static int split_command(char *cmd, char ***commands)
233 for( *commands = 0, l = c = 0, p = s = cmd ; ; p++, l++ ){
238 (*commands) = realloc( (*commands), sizeof(char *)*(c + 2));
239 (*commands)[c] = strndup(s, l);
246 (*commands)[c] = 0;
259 for( match = 0, cp = commands; cp->verb; cp++ ){
332 for all the matching commands
338 of uncorrect command; >0 in case of matching commands
360 for( cp = commands; cp->verb; cp++ )
364 for( cp = commands; cp->verb; cp++ ){