From 70777f188c86c6a4167906cd0146373eed360940 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 9 Aug 2012 02:34:22 +0000 Subject: Print version on -v (and fix dead code). git-svn-id: http://svn.drobilla.net/sord/trunk@246 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/sord_validate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sord_validate.c b/src/sord_validate.c index cb87878..9f8c176 100644 --- a/src/sord_validate.c +++ b/src/sord_validate.c @@ -251,6 +251,8 @@ main(int argc, char** argv) for (; a < argc && argv[a][0] == '-'; ++a) { if (argv[a][1] == 'l') { one_line_errors = true; + } else if (argv[a][1] == 'v') { + return print_version(); } else { fprintf(stderr, "%s: Unknown option `%s'\n", argv[0], argv[a]); return print_usage(argv[0], true); -- cgit v1.2.1