summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-03-02 19:55:32 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-03-02 19:55:32 +0000
commitabaaab4e2d41fd71cdfbeb47ad8129dc59dddc99 (patch)
tree227582792eed16e44ccfcee1e5d1d1d2aa095caf /lib/command.h
parenta4499b8312f2c7fdc04d9aecbfd033ccf80eabe6 (diff)
vtysh: make HIDDEN commands work
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-9646
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h
index 6e6ab047f7..4aa4bdf46a 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -395,6 +395,9 @@ struct cmd_token
#define DEFSH(daemon, cmdname, cmdstr, helpstr) \
DEFUN_CMD_ELEMENT(NULL, cmdname, cmdstr, helpstr, 0, daemon) \
+#define DEFSH_HIDDEN(daemon, cmdname, cmdstr, helpstr) \
+ DEFUN_CMD_ELEMENT(NULL, cmdname, cmdstr, helpstr, CMD_ATTR_HIDDEN, daemon) \
+
/* DEFUN + DEFSH */
#define DEFUNSH(daemon, funcname, cmdname, cmdstr, helpstr) \
DEFUN_CMD_FUNC_DECL(funcname) \