diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-11-27 16:12:25 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-11-27 16:12:25 +0100 |
commit | caaa578ea21108d171b53d94882e18819617014b (patch) | |
tree | 6724020aa6fa27d94b02c8560b35c7138ad0f07c /src/delombok/lombok | |
parent | 2caddc3c2a4431aa5d2ffd4e4d1840dbd7c09a64 (diff) | |
download | lombok-caaa578ea21108d171b53d94882e18819617014b.tar.gz lombok-caaa578ea21108d171b53d94882e18819617014b.tar.bz2 lombok-caaa578ea21108d171b53d94882e18819617014b.zip |
--help now no longer prints errors.
Diffstat (limited to 'src/delombok/lombok')
-rw-r--r-- | src/delombok/lombok/delombok/Delombok.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java index 6e7fccaf..f6a62bef 100644 --- a/src/delombok/lombok/delombok/Delombok.java +++ b/src/delombok/lombok/delombok/Delombok.java @@ -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; } |