From 0223d4fff11badc03470b4320fa9dfe28afd1bed Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 17 Feb 2000 22:00:13 +0000 Subject: Client: Online help works (Cisco style: just press `?' at the end of a line). --- conf/gen_commands.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'conf') diff --git a/conf/gen_commands.m4 b/conf/gen_commands.m4 index cba10b4..a88ba01 100644 --- a/conf/gen_commands.m4 +++ b/conf/gen_commands.m4 @@ -7,9 +7,10 @@ m4_divert(-1)m4_dnl # Can be freely distributed and used under the terms of the GNU GPL. # -m4_define(CF_CLI, `CF_CLI_HELP($1, $3, $4)') +m4_define(CF_CLI, `m4_divert(0){ "m4_translit($1,A-Z,a-z)", "$3", "$4", 1 }, +m4_divert(-1)') -m4_define(CF_CLI_HELP, `m4_divert(0){ "m4_translit($1,A-Z,a-z)", "$2", "$3" }, +m4_define(CF_CLI_HELP, `m4_divert(0){ "m4_translit($1,A-Z,a-z)", "$2", "$3", 0 }, m4_divert(-1)') # As we are processing C source, we must access all M4 primitives via -- cgit v1.2.3