Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 81c47a9

Browse files
committed
Fix broken alias + System.exit call remove
1 parent 490f09a commit 81c47a9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/net/bc100dev/osintgram4j/cmd/HelpCmd.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ private int parseCommands(String[] cmdList) {
8080
maxCmdLength = cmd.length();
8181
}
8282

83-
// .--. .-. --- -... .-.. . -- ... / .... .- ...- . / .- .-.. .-. . .- -.. -.-- / .- .-. .. ... . -.
84-
8583
maxCmdLength += 5;
8684

8785
for (ShellCaller caller : instance.shellCallers) {
@@ -157,7 +155,7 @@ public int launchCmd(String[] args, List<ShellConfig> env) {
157155
pg.addArg("-t", null, "Shows only alternate commands, in PowerShell Syntax alike");
158156
pg.display(System.out);
159157

160-
System.exit(0);
158+
return 0;
161159
}
162160
default -> {
163161
Terminal.errPrintln(RED, "invalid option: " + arg, true);

src/net/bc100dev/osintgram4j/res/cmd_list_d/app-core.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@
9595
"aliases": [
9696
{
9797
"cmd": "login",
98-
"args": "--manage-users login"
98+
"args": "login"
9999
},
100100
{
101101
"cmd": "logout",
102-
"args": "--manage-users logout"
102+
"args": "logout"
103103
}
104104
]
105105
},

0 commit comments

Comments
 (0)