Browse Source

Option value is converted rather than the name of the option.

Alberth 5 years ago
parent
commit
6d6cde37b7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      jplag/src/main/java/de/jplag/options/Verbosity.java

+ 2 - 2
jplag/src/main/java/de/jplag/options/Verbosity.java

@@ -4,8 +4,8 @@ public enum Verbosity {
     QUIET,
     QUIET,
     LONG;
     LONG;
 
 
-    public static Verbosity fromOption(String optionName) {
-        switch (optionName) {
+    public static Verbosity fromOption(String optionValue) {
+        switch (optionValue) {
         case "quiet":
         case "quiet":
             return QUIET;
             return QUIET;
         case "long":
         case "long":