yanglint REFACTOR printing list in cmd_list
diff --git a/tools/lint/main_ni.c b/tools/lint/main_ni.c
index 41f595d..d89990c 100644
--- a/tools/lint/main_ni.c
+++ b/tools/lint/main_ni.c
@@ -775,7 +775,7 @@
 
     if (yo.list) {
         /* print the list of schemas */
-        ret = print_list(yo.out, ctx, yo.data_out_format);
+        ret = cmd_list_exec(&ctx, &yo, NULL);
         goto cleanup;
     } else {
         if (yo.feature_param_format) {