mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 22:17:41 +00:00
--help now no longer prints errors.
This commit is contained in:
1 parent
2caddc3c2a
commit
caaa578ea2
1 file changed
+3
-3
@@ -78,7 +78,7 @@ public class Delombok {
|
||||
|
||||
@Shorthand("d")
|
||||
@Description("Directory to save delomboked files to")
|
||||
@Mandatory(onlyIfNot="print")
|
||||
@Mandatory(onlyIfNot={"print", "help"})
|
||||
@Parameterized
|
||||
private String target;
|
||||
|
||||
@@ -103,9 +103,9 @@ public class Delombok {
|
||||
}
|
||||
|
||||
if (args.help || args.input.isEmpty()) {
|
||||
if (args.input.isEmpty()) System.err.println("ERROR: no files or directories to delombok specified.");
|
||||
if (!args.help) System.err.println("ERROR: no files or directories to delombok specified.");
|
||||
System.err.println(reader.generateCommandLineHelp("delombok"));
|
||||
System.exit(args.input.isEmpty() ? 1 : 0);
|
||||
System.exit(args.help ? 0 : 1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user