============ idCmdSystemLocal::ArgCompletion ============ */
| 448 | ============ |
| 449 | */ |
| 450 | void idCmdSystemLocal::ArgCompletion( const char *cmdString, void(*callback)( const char *s ) ) { |
| 451 | commandDef_t *cmd; |
| 452 | idCmdArgs args; |
| 453 | |
| 454 | args.TokenizeString( cmdString, false ); |
| 455 | |
| 456 | for ( cmd = commands; cmd; cmd = cmd->next ) { |
| 457 | if ( !cmd->argCompletion ) { |
| 458 | continue; |
| 459 | } |
| 460 | if ( idStr::Icmp( args.Argv( 0 ), cmd->name ) == 0 ) { |
| 461 | cmd->argCompletion( args, callback ); |
| 462 | break; |
| 463 | } |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | /* |
| 468 | ============ |
no test coverage detected