From e3ecbddba06f91c3ef5b3cd8305a8f2fdb6c9cde Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sun, 7 Aug 2016 10:42:47 +0200 Subject: cmd: add support for long commands - Long commands are commands that is 2 or more characters, and MUST be completed by pressing enter. - A given command can have a long-command, a short-command or both. - All long commands are using '/' (slash) prefix - a simple TAB-completion is supported, while punching in your long command you can press TAB to see a list of commands that matches the input string. Feedback is welcome, specially on the long-command strings itself. If you want to suggest changes, please make a small and non-intrusive patch and send it as a Pull Request (PR). --- modules/natbd/natbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/natbd/natbd.c') diff --git a/modules/natbd/natbd.c b/modules/natbd/natbd.c index 428a51a..3c45ba4 100644 --- a/modules/natbd/natbd.c +++ b/modules/natbd/natbd.c @@ -451,7 +451,7 @@ static int status(struct re_printf *pf, void *unused) static const struct cmd cmdv[] = { - {'z', 0, "NAT status", status} + {"natbd", 'z', 0, "NAT status", status} }; -- cgit v1.2.3