yanglint BUGFIX set default output in non-interactive mode
It was done for data, but not for schemas
diff --git a/tools/lint/main_ni.c b/tools/lint/main_ni.c
index dc4a13b..efc0c85 100644
--- a/tools/lint/main_ni.c
+++ b/tools/lint/main_ni.c
@@ -782,7 +782,9 @@
lys_feature_enable(mod, "*");
}
}
-
+ if (!out && (outformat_s || data)) {
+ ly_out_new_file(stdout, &out);
+ }
/* convert (print) to FORMAT */
if (outformat_s) {
if (outtarget_s) {
@@ -1084,9 +1086,6 @@
}
}
#endif
- if (!out) {
- ly_out_new_file(stdout, &out);
- }
lyd_print_all(out, data_item->tree, outformat_d, options_dflt);
#if 0
if (envelope_s) {