]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - fade.c
Make gengetopt descriptions work.
[paraslash.git] / fade.c
diff --git a/fade.c b/fade.c
index d2ab8287e88973e38066ff97e80ff738a17e144b..76d6a8b422b3fca28ded60dee815d8335378a5c9 100644 (file)
--- a/fade.c
+++ b/fade.c
@@ -293,7 +293,8 @@ int main(int argc, char *argv[])
        struct mixer_handle *h = NULL;
 
        fade_cmdline_parser(argc, argv, &conf);
-       HANDLE_VERSION_FLAG("fade", conf);
+       loglevel = get_loglevel_by_name(conf.loglevel_arg);
+       version_handle_flag("fade", conf.version_given);
        ret = configfile_exists();
        if (!ret && conf.config_file_given) {
                PARA_EMERG_LOG("can not read config file %s\n",
@@ -310,8 +311,8 @@ int main(int argc, char *argv[])
                };
                fade_cmdline_parser_config_file(conf.config_file_arg,
                        &conf, &params);
+               loglevel = get_loglevel_by_name(conf.loglevel_arg);
        }
-       loglevel = get_loglevel_by_name(conf.loglevel_arg);
        init_mixers();
        m = get_mixer_or_die();
        ret = m->open(conf.mixer_device_arg, &h);