This commit is contained in:
Downforce Agent 2024-08-12 23:46:20 -05:00
parent d65d2145cf
commit 012ba02313
2 changed files with 33 additions and 6 deletions

View File

@ -9,7 +9,8 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="cf74c012-cc69-4732-ac79-9ddfcbf803ee" name="Changes" comment="cli args handling WIP">
<list default="true" id="cf74c012-cc69-4732-ac79-9ddfcbf803ee" name="Changes" comment="shut up">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/net/screwgravity/vitality4j/standalone.java" beforeDir="false" afterPath="$PROJECT_DIR$/net/screwgravity/vitality4j/standalone.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -114,7 +115,15 @@
<option name="project" value="LOCAL" />
<updated>1723521447461</updated>
</task>
<option name="localTasksCounter" value="7" />
<task id="LOCAL-00007" summary="shut up">
<option name="closed" value="true" />
<created>1723521528643</created>
<option name="number" value="00007" />
<option name="presentableId" value="LOCAL-00007" />
<option name="project" value="LOCAL" />
<updated>1723521528643</updated>
</task>
<option name="localTasksCounter" value="8" />
<servers />
</component>
<component name="VcsManagerConfiguration">
@ -125,6 +134,7 @@
<MESSAGE value="brb, eating" />
<MESSAGE value="back from taco hell" />
<MESSAGE value="cli args handling WIP" />
<option name="LAST_COMMIT_MESSAGE" value="cli args handling WIP" />
<MESSAGE value="shut up" />
<option name="LAST_COMMIT_MESSAGE" value="shut up" />
</component>
</project>

View File

@ -48,6 +48,7 @@ public class standalone {
printHelpScreen();
System.exit(0);
}
int i = 0;
for (String s : args) {
if (!argIsTakingParam) { // The options
switch (s) {
@ -128,21 +129,37 @@ public class standalone {
makeCaseInsensitive = true;
break;
default:
System.out.println("invalid option: " + s);
System.exit(1);
break;
if ((args.length - 1) == i && (!s.startsWith("-") || s.endsWith(".psarc"))) {
targetPath = s;
} else {
System.out.println("invalid option: " + s);
System.exit(1);
break;
}
}
} else { // And then the options for those options
switch (argWhichIsTakingParam) {
case "":
}
}
i++;
}
if (verbosity != Verbosities.QUIET) {
System.out.println("INFO: absolute mode is " + makeAbsolute);
System.out.println("INFO: case insensitive mode is " + makeCaseInsensitive);
}
if () {
}
switch (operation) {
default:
System.out.println("No valid operation specified. Exiting.");
System.exit(0);
break;
}
}
}