summaryrefslogtreecommitdiffstats
path: root/src/vty/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vty/command.c')
-rw-r--r--src/vty/command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vty/command.c b/src/vty/command.c
index ac731ee0..4f47a6be 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -1600,6 +1600,9 @@ cmd_describe_command_real(vector vline, struct vty *vty, int *status)
if (!cmd_element)
continue;
+ if (cmd_element->attr & (CMD_ATTR_DEPRECATED|CMD_ATTR_HIDDEN))
+ continue;
+
strvec = cmd_element->strvec;
/* if command is NULL, index may be equal to vector_active */