From 4a14ab5c06c1973158cdcf2c6db304cf95256fd0 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 10 Aug 2016 21:29:08 +0200 Subject: [PATCH] Hide all deprecated commands in src2asciidoc --- scripts/dev/src2asciidoc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/dev/src2asciidoc.py b/scripts/dev/src2asciidoc.py index f76d8bb59..0ca72d860 100755 --- a/scripts/dev/src2asciidoc.py +++ b/scripts/dev/src2asciidoc.py @@ -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()