Hide all deprecated commands in src2asciidoc

This commit is contained in:
Florian Bruhin 2016-08-10 21:29:08 +02:00
parent 3d4fe5dde1
commit 4a14ab5c06

View File

@ -327,11 +327,13 @@ def generate_commands(filename):
for name, cmd in cmdutils.cmd_dict.items(): for name, cmd in cmdutils.cmd_dict.items():
if name in cmdutils.aliases: if name in cmdutils.aliases:
continue continue
if cmd.deprecated:
continue
if cmd.hide: if cmd.hide:
hidden_cmds.append((name, cmd)) hidden_cmds.append((name, cmd))
elif cmd.debug: elif cmd.debug:
debug_cmds.append((name, cmd)) debug_cmds.append((name, cmd))
elif not cmd.deprecated: else:
normal_cmds.append((name, cmd)) normal_cmds.append((name, cmd))
normal_cmds.sort() normal_cmds.sort()
hidden_cmds.sort() hidden_cmds.sort()