which just prints the syntax for now
return -1;
}
- if (!table->func) {
- fr_strerror_printf("Command tables MUST define a callback function.");
- return -1;
- }
-
start = head;
syntax_argv = NULL;
if (max_depth > CMD_MAX_ARGV) max_depth = CMD_MAX_ARGV;
if (!is_head) {
- if (!head->child) return;
+ if (!head->child) {
+ rad_assert(head->func != NULL);
+ // @todo - skip syntax_argv as necessary
+ fr_command_list_node(fp, head, 0, argv);
+ return;
+ }
head = head->child;
}