summaryrefslogtreecommitdiffstats
path: root/conf/gen_commands.m4
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-02-17 23:00:13 +0100
committerMartin Mares <mj@ucw.cz>2000-02-17 23:00:13 +0100
commit0223d4fff11badc03470b4320fa9dfe28afd1bed (patch)
treeb4281ed75395e0f219c3dc7fb2cc97f6282769db /conf/gen_commands.m4
parentc51f132d582632037b4ef064fbd32d785af245fc (diff)
downloadbird-0223d4fff11badc03470b4320fa9dfe28afd1bed.tar
bird-0223d4fff11badc03470b4320fa9dfe28afd1bed.zip
Client: Online help works (Cisco style: just press `?' at the end of a line).
Diffstat (limited to 'conf/gen_commands.m4')
-rw-r--r--conf/gen_commands.m45
1 files changed, 3 insertions, 2 deletions
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