Hide all deprecated commands in src2asciidoc
This commit is contained in:
parent
3d4fe5dde1
commit
4a14ab5c06
@ -327,11 +327,13 @@ def generate_commands(filename):
|
||||
for name, cmd in cmdutils.cmd_dict.items():
|
||||
if name in cmdutils.aliases:
|
||||
continue
|
||||
if cmd.deprecated:
|
||||
continue
|
||||
if cmd.hide:
|
||||
hidden_cmds.append((name, cmd))
|
||||
elif cmd.debug:
|
||||
debug_cmds.append((name, cmd))
|
||||
elif not cmd.deprecated:
|
||||
else:
|
||||
normal_cmds.append((name, cmd))
|
||||
normal_cmds.sort()
|
||||
hidden_cmds.sort()
|
||||
|
Loading…
Reference in New Issue
Block a user