yanglint BUGFIX printing all features
diff --git a/tools/lint/cmd_feature.c b/tools/lint/cmd_feature.c
index d204c90..4214ce3 100644
--- a/tools/lint/cmd_feature.c
+++ b/tools/lint/cmd_feature.c
@@ -93,11 +93,6 @@
return 1;
}
- if (yo->feature_print_all && posc) {
- YLMSG_E("No positional arguments are allowed.\n");
- return 1;
- }
-
return 0;
}
@@ -157,7 +152,7 @@
{
(void) ctx;
- if (yo->feature_param_format) {
+ if (!yo->feature_print_all && yo->feature_param_format) {
printf("%s\n", yo->features_output);
}