Skip to content

Commit

Permalink
Fix #1 for sure
Browse files Browse the repository at this point in the history
  • Loading branch information
s0m31-hub committed Jun 4, 2022
1 parent 205053a commit 636cfea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>org.nwolfhub</groupId>
<artifactId>vezdekod-backend</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<name>vezdekod-backend</name>
<description></description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ public static void main(String[] args) throws IOException {
int get = 20;
int post = 3;
for(String arg:args) {
if(next.equals("get")) {
get = Integer.parseInt(arg);
next = "";
}
else if(next.equals("post")) {
post = Integer.parseInt(arg);
next = "";
}
switch (arg) {
case "--get":
case "-g":
Expand All @@ -27,9 +35,6 @@ public static void main(String[] args) throws IOException {
next = "post";
break;
}
if(next.equals("get")) get = Integer.parseInt(arg);
else if(next.equals("post")) post = Integer.parseInt(arg);
else next = "";
}
MainController.initialize(get, post);
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
Expand Down

0 comments on commit 636cfea

Please sign in to comment.