mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Print list of existing alias commands
This commit is contained in:
parent
9a31064c4a
commit
c55b2f2943
1 changed files with 12 additions and 0 deletions
|
@ -681,6 +681,17 @@ static void COM_ExecuteString(char *ptext)
|
|||
// SCRIPT COMMANDS
|
||||
// =========================================================================
|
||||
|
||||
static void print_alias(void)
|
||||
{
|
||||
cmdalias_t *a;
|
||||
|
||||
CONS_Printf("\x82""Current alias commands:\n");
|
||||
for (a = com_alias; a; a = a->next)
|
||||
{
|
||||
CONS_Printf("%s : %s", a->name, a->value);
|
||||
}
|
||||
}
|
||||
|
||||
/** Creates a command name that replaces another command.
|
||||
*/
|
||||
static void COM_Alias_f(void)
|
||||
|
@ -692,6 +703,7 @@ static void COM_Alias_f(void)
|
|||
if (COM_Argc() < 3)
|
||||
{
|
||||
CONS_Printf(M_GetText("alias <name> <command>: create a shortcut command that executes other command(s)\n"));
|
||||
print_alias();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue