- DLOG("should call stuff, yay. call_id = %d\n",
- token->extra.call_identifier);
- json_output = GENERATED_call(token->extra.call_identifier);
+ subcommand_output.json_gen = command_output.json_gen;
+ subcommand_output.needs_tree_render = false;
+ GENERATED_call(token->extra.call_identifier, &subcommand_output);
+ state = subcommand_output.next_state;
+ /* If any subcommand requires a tree_render(), we need to make the
+ * whole parser result request a tree_render(). */
+ if (subcommand_output.needs_tree_render)
+ command_output.needs_tree_render = true;