From da34d940ea813f5eaf52c5ebf70615983f45903b Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 26 Jan 2017 13:30:41 -0600 Subject: [PATCH] main: print warnings/errors when using --validate --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index de4253d..05603e0 100644 --- a/main.c +++ b/main.c @@ -690,7 +690,7 @@ main(int argc, char *argv[]) { "print-provides", no_argument, &want_flags, PKG_PROVIDES, }, { "no-provides", no_argument, &want_flags, PKG_NO_PROVIDES, }, { "debug", no_argument, &want_flags, 0, }, - { "validate", no_argument, NULL, 0 }, + { "validate", no_argument, &want_flags, PKG_VALIDATE|PKG_PRINT_ERRORS|PKG_ERRORS_ON_STDOUT }, { "log-file", required_argument, NULL, 40 }, { "path", no_argument, &want_flags, PKG_PATH }, { "with-path", required_argument, NULL, 42 },