From: cloudwalk Date: Wed, 17 Jun 2020 23:50:14 +0000 (+0000) Subject: Implement the find command. Basically apropos but three less characters to type X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=b1748c5eeb04c3ea41911e1a0463c90434350259;p=xonotic%2Fdarkplaces.git Implement the find command. Basically apropos but three less characters to type git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12690 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cmd.c b/cmd.c index 5fc5e579..842d57af 100644 --- a/cmd.c +++ b/cmd.c @@ -1435,7 +1435,7 @@ static void Cmd_Apropos_f(cmd_state_t *cmd) partial = Cmd_Args(cmd); else { - Con_Printf("usage: apropos \n"); + Con_Printf("usage: %s \n",Cmd_Argv(cmd, 0)); return; } @@ -1561,6 +1561,7 @@ void Cmd_Init_Commands(qboolean dedicated_server) Cmd_AddCommand(CMD_SHARED, "cmdlist", Cmd_List_f, "lists all console commands beginning with the specified prefix or matching the specified wildcard pattern"); Cmd_AddCommand(CMD_SHARED, "cvarlist", Cvar_List_f, "lists all console variables beginning with the specified prefix or matching the specified wildcard pattern"); Cmd_AddCommand(CMD_SHARED, "apropos", Cmd_Apropos_f, "lists all console variables/commands/aliases containing the specified string in the name or description"); + Cmd_AddCommand(CMD_SHARED, "find", Cmd_Apropos_f, "lists all console variables/commands/aliases containing the specified string in the name or description"); Cmd_AddCommand(CMD_SHARED, "defer", Cmd_Defer_f, "execute a command in the future");