yanglint BUGFIX checking combination of options
... specifically for "data --xpath".
diff --git a/tools/lint/cmd_data.c b/tools/lint/cmd_data.c
index 69f94bc..945bc1d 100644
--- a/tools/lint/cmd_data.c
+++ b/tools/lint/cmd_data.c
@@ -284,6 +284,11 @@
cmd_data_help();
goto cleanup;
}
+ if (xpaths.count && (options_print & LYD_PRINT_WD_MASK)) {
+ YLMSG_E("The --default option cannot be combined with --xpath option.\n");
+ cmd_data_help();
+ goto cleanup;
+ }
if (operational && !data_type) {
YLMSG_W("Operational datastore takes effect only with RPCs/Actions/Replies/Notifications input data types.\n");