summaryrefslogtreecommitdiff
path: root/lib/command_match.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-10-13 13:47:04 -0400
committerGitHub <noreply@github.com>2022-10-13 13:47:04 -0400
commite3e3d729c42505910e0b396899bfd50e2d7b2404 (patch)
treefa49a9c2839a88ef7ec339b76e0fe99913c818c9 /lib/command_match.c
parentfd30c2467a9a3afc615923af64f5de91937d268f (diff)
parentd40aee771f40b72356eb57d4c9d7bfc2622d9577 (diff)
Merge pull request #12066 from opensourcerouting/cleanup-cli-xref
*: clean up various CLI-related bits
Diffstat (limited to 'lib/command_match.c')
-rw-r--r--lib/command_match.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/command_match.c b/lib/command_match.c
index f221e0a02c..ce2dbc9528 100644
--- a/lib/command_match.c
+++ b/lib/command_match.c
@@ -395,8 +395,7 @@ enum matcher_rv command_complete(struct graph *graph, vector vline,
for (ALL_LIST_ELEMENTS_RO(current, node, gstack)) {
struct cmd_token *token = gstack[0]->data;
- if (token->attr == CMD_ATTR_HIDDEN
- || token->attr == CMD_ATTR_DEPRECATED)
+ if (token->attr & CMD_ATTR_HIDDEN)
continue;
enum match_type minmatch = min_match_level(token->type);