]> www.vanbest.org Git - tv_grab_nl_java/commitdiff
Oops, now really fixed #11
authorJan-Pascal van Best <janpascal@vanbest.org>
Tue, 11 Jun 2013 08:04:39 +0000 (10:04 +0200)
committerJan-Pascal van Best <janpascal@vanbest.org>
Tue, 11 Jun 2013 08:04:39 +0000 (10:04 +0200)
src/main/java/org/vanbest/xmltv/Main.java

index d6485f9a92a4e0bdcdde06da294d11519b05941d..6f77b7c114e704743db54c981c00a0ea6ade93a0 100644 (file)
@@ -416,6 +416,10 @@ public class Main {
                        action = ACTION_LICENSE;
                        return action; // do not read config file
                }
+               if (line.hasOption("description")) {
+                       action = ACTION_DESCRIPTION;
+                       return action; // do not read config file
+               }
                if (line.hasOption("config-file")) {
                        configFile = new File(line.getOptionValue("config-file"));
                }
@@ -424,9 +428,6 @@ public class Main {
                        config.quiet = true;
                        Logger.getRootLogger().setLevel(Level.ERROR);
                }
-               if (line.hasOption("description")) {
-                       action = ACTION_DESCRIPTION;
-               }
                if (line.hasOption("help")) {
                        action = ACTION_HELP;
                }