diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-06-22 11:42:38 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-06-22 11:42:38 -0700 |
commit | 366735512c2cb9773deba1173ee187ceabe9ceb9 (patch) | |
tree | e3d828932cbd70e1f6a836cc558764a7e47c3f35 /src | |
parent | 6974744f9edf09358d92f5973f78340cd0d6732d (diff) | |
download | vyatta-cfg-366735512c2cb9773deba1173ee187ceabe9ceb9.tar.gz vyatta-cfg-366735512c2cb9773deba1173ee187ceabe9ceb9.zip |
add val_help mechanism
Diffstat (limited to 'src')
-rw-r--r-- | src/cli_def.l | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cli_def.l b/src/cli_def.l index 0b4e5b0..86e5c98 100644 --- a/src/cli_def.l +++ b/src/cli_def.l @@ -25,17 +25,17 @@ static int reg_fields_t[] = { DEFAULT, TAG, TYPE, MULTI, PRIORITY, 0 }; static char *act_fields[] = { "help", "syntax", "commit", "delete", "update", "activate", "create", "begin", "end", - "comp_help", "allowed", + "comp_help", "allowed", "val_help", NULL }; static int act_fields_t[] = { HELP, SYNTAX, COMMIT, ACTION, ACTION, ACTION, ACTION, ACTION, ACTION, - DUMMY, DUMMY, + DUMMY, DUMMY, DUMMY, 0 }; static int act_types[] = { -1, -1, -1, delete_act, update_act, activate_act, create_act, begin_act, end_act, - -1, -1, + -1, -1, -1, -1 }; static char *type_names[] = { "txt", "u32", "ipv4", "ipv4net", @@ -266,7 +266,7 @@ RE_OP_OTHER (pattern|exec|,|\|\||&&|=|!|\(|\)|;) /* template fields */ RE_REG_FIELD (default|tag|type|multi|priority) -RE_ACT_FIELD (help|syntax|commit|delete|update|activate|create|begin|end|comp_help|allowed) +RE_ACT_FIELD (help|syntax|commit|delete|update|activate|create|begin|end|comp_help|allowed|val_help) %% |