summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-09 02:34:22 +0000
committerDavid Robillard <d@drobilla.net>2012-08-09 02:34:22 +0000
commit70777f188c86c6a4167906cd0146373eed360940 (patch)
treedfd86f795256991c899dd23be4acff91dbf58a24
parent5560c4e2fa9c4b6aab7fb9bc26ad647fc7bd0650 (diff)
downloadsord-70777f188c86c6a4167906cd0146373eed360940.tar.gz
sord-70777f188c86c6a4167906cd0146373eed360940.tar.bz2
sord-70777f188c86c6a4167906cd0146373eed360940.zip
Print version on -v (and fix dead code).
git-svn-id: http://svn.drobilla.net/sord/trunk@246 3d64ff67-21c5-427c-a301-fe4f08042e5a
-rw-r--r--src/sord_validate.c2
1 files changed, 2 insertions, 0 deletions
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);