mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
cvarlist/cmdlist print 'h' when more help is available
This commit is contained in:
parent
d56efd2d3d
commit
f36f363020
2 changed files with 3 additions and 2 deletions
|
@ -753,7 +753,8 @@ static void Cmd_List_f()
|
|||
for (const cmd_function_t* cmd = cmd_functions; cmd; cmd = cmd->next) {
|
||||
if (match && !Com_Filter(match, cmd->name))
|
||||
continue;
|
||||
Com_Printf( "%s\n", cmd->name );
|
||||
const char h = cmd->help != NULL ? 'h' : ' ';
|
||||
Com_Printf( " %c %s\n", h, cmd->name );
|
||||
++i;
|
||||
}
|
||||
|
||||
|
|
|
@ -800,7 +800,7 @@ static void Cvar_List_f( void )
|
|||
Com_Printf( (var->flags & CVAR_ARCHIVE) ? "A" : " " );
|
||||
Com_Printf( (var->flags & CVAR_LATCH) ? "L" : " " );
|
||||
Com_Printf( (var->flags & CVAR_CHEAT) ? "C" : " " );
|
||||
Com_Printf( (var->flags & CVAR_USER_CREATED) ? "?" : " " );
|
||||
Com_Printf( (var->flags & CVAR_USER_CREATED) ? "?" : (var->help ? "h" : " ") );
|
||||
|
||||
Com_Printf(" %s \"%s\"\n", var->name, var->string);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue