]> git.tuebingen.mpg.de Git - dss.git/blobdiff - dss.c
dss.c: Fix check for number of non-options.
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index f33ce8d2b194178e148141133aef45c2d49d6754..121cee4c8846269a084c0a7f99bac6c0cd8c04d2 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -691,9 +691,9 @@ int main(int argc, char **argv)
        int ret;
 
        cmdline_parser(argc, argv, &conf); /* aborts on errors */
-       if (!conf.inputs_num) {
+       if (conf.inputs_num) {
                ret = -E_SYNTAX;
-               make_err_msg("no command given");
+               make_err_msg("additional non-options given");
                goto out;
        }
        ret = read_config_file();