Skip to content

Commit 2d30bbf

Browse files
committed
java中添加update命令支持
1 parent 4c1c491 commit 2d30bbf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/yanglb/codegen/core/parser/BaseParser.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ public ParameterModel parsing() {
147147
}
148148

149149
String[] as = commandLine.getArgs();
150+
if (as.length > 0 && "update".equals(as[0])) {
151+
System.out.println("请访问以下连接进行更新");
152+
System.out.println("https://github.com/excel-code-generator/code-generator");
153+
return null;
154+
}
150155
if (as.length < 2) {
151156
throw new IllegalArgumentException("您输入的参数不正确,请使用 --help 命令查看用法。");
152157
}

0 commit comments

Comments
 (0)