Skip to content

Commit

Permalink
Update OptionParser.java
Browse files Browse the repository at this point in the history
Signed-off-by: Presti <dxssucuk@hotmail.com>
  • Loading branch information
DxsSucuk authored Feb 5, 2025
1 parent 005c34a commit 31aeefc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/presti/ree6/utils/data/OptionParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public OptionParser(String[] args, boolean addEnv) {
String key = arg.substring(2);
String value = "";
if (key.contains("=")) {
key = key.split("=")[0];
value = key.substring(key.indexOf("=") + 1);
key = key.split("=")[0];
}
this.options.put(key, value);
}
Expand Down Expand Up @@ -62,4 +62,4 @@ public String getValue(String name) {
public String getValueOrDefault(String name, String defaultValue) {
return this.options.getOrDefault(name, defaultValue);
}
}
}

0 comments on commit 31aeefc

Please sign in to comment.