diff options
author | David Robillard <d@drobilla.net> | 2012-08-09 02:34:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-09 02:34:22 +0000 |
commit | 70777f188c86c6a4167906cd0146373eed360940 (patch) | |
tree | dfd86f795256991c899dd23be4acff91dbf58a24 /src | |
parent | 5560c4e2fa9c4b6aab7fb9bc26ad647fc7bd0650 (diff) | |
download | sord-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
Diffstat (limited to 'src')
-rw-r--r-- | src/sord_validate.c | 2 |
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); |