refactor: 将调试标志从 -debug 改为 --debug
This commit is contained in:
parent
8d992001f9
commit
f5a6443c8a
@ -60,9 +60,9 @@ public final class CompileCommand implements CLICommand {
|
||||
|
||||
List<String> argList = new ArrayList<>();
|
||||
|
||||
// 保留用户在 cloud 模式下传入的 “run” / “-debug” 标志
|
||||
// 保留用户在 cloud 模式下传入的 “run” / “--debug” 标志
|
||||
for (String a : args) {
|
||||
if ("run".equals(a) || "-debug".equals(a)) {
|
||||
if ("run".equals(a) || "--debug".equals(a)) {
|
||||
argList.add(a);
|
||||
}
|
||||
}
|
||||
|
||||
@ -154,7 +154,7 @@ public final class CompileTask implements Task {
|
||||
String arg = args[i];
|
||||
switch (arg) {
|
||||
case "run" -> runAfterCompile = true;
|
||||
case "-debug" -> SnowConfig.MODE = Mode.DEBUG;
|
||||
case "--debug" -> SnowConfig.MODE = Mode.DEBUG;
|
||||
case "-o" -> {
|
||||
if (i + 1 < args.length) outputName = args[++i];
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user