aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith <keith@rhizomatica.org>2021-01-19 06:55:22 +0100
committerkeith <keith@rhizomatica.org>2021-01-19 07:18:50 +0000
commitcc90bfd0f412368882854c79d0390e655a0708f0 (patch)
treece38dca7d53edd40a0bcbcd99bd61c3cc649b268
parentf4d64cb98bf618a17594fa29d4ec0c376541af49 (diff)
Correct vty inline help for show subscriber
-rw-r--r--src/hlr_vty_subscr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hlr_vty_subscr.c b/src/hlr_vty_subscr.c
index 3dbc383..f5066c1 100644
--- a/src/hlr_vty_subscr.c
+++ b/src/hlr_vty_subscr.c
@@ -188,6 +188,7 @@ static int get_subscr_by_argv(struct vty *vty, const char *type, const char *id,
#define SUBSCR_CMD "subscriber "
#define SUBSCR_CMD_HELP "Subscriber management commands\n"
+#define SUBSCR_SHOW_HELP "Show subscriber information\n"
#define SUBSCR_ID "(imsi|msisdn|id|imei) IDENT"
#define SUBSCR_ID_HELP \
@@ -207,7 +208,7 @@ static int get_subscr_by_argv(struct vty *vty, const char *type, const char *id,
DEFUN(subscriber_show,
subscriber_show_cmd,
SUBSCR "show",
- SUBSCR_HELP "Show subscriber information\n")
+ SUBSCR_HELP SUBSCR_SHOW_HELP)
{
struct hlr_subscriber subscr;
const char *id_type = argv[0];
@@ -222,7 +223,7 @@ DEFUN(subscriber_show,
ALIAS(subscriber_show, show_subscriber_cmd,
"show " SUBSCR_CMD SUBSCR_ID,
- SHOW_STR SUBSCR_CMD_HELP SUBSCR_ID_HELP);
+ SHOW_STR SUBSCR_SHOW_HELP SUBSCR_ID_HELP);
DEFUN(subscriber_create,
subscriber_create_cmd,