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

Commit 54fd6a3

Browse files
committed
UPDATE README
1 parent 52ea4e0 commit 54fd6a3

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/main/java/me/n1ar4/jar/obfuscator/Main.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public static void main(String[] args) {
3232
if (baseCmd.isCheck()) {
3333
return;
3434
}
35+
if (baseCmd.isVersion()) {
36+
return;
37+
}
3538
if (baseCmd.isGenerate()) {
3639
parser.generateConfig();
3740
logger.info("generate config.yaml file");

src/main/java/me/n1ar4/jar/obfuscator/config/BaseCmd.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ public class BaseCmd {
1111
private boolean generate;
1212
@Parameter(names = {"--check-update"}, description = "check update")
1313
private boolean check;
14+
@Parameter(names = {"-v", "--version"}, description = "version")
15+
private boolean version;
16+
17+
public boolean isVersion() {
18+
return version;
19+
}
20+
21+
public void setVersion(boolean version) {
22+
this.version = version;
23+
}
1424

1525
public boolean isCheck() {
1626
return check;

0 commit comments

Comments
 (0)