aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/lombok/core/Main.java2
-rw-r--r--src/core/lombok/core/Version.java6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/core/lombok/core/Main.java b/src/core/lombok/core/Main.java
index b75d0513..6a02199a 100644
--- a/src/core/lombok/core/Main.java
+++ b/src/core/lombok/core/Main.java
@@ -58,7 +58,7 @@ public class Main {
}
@Override public int runApp(List<String> args) {
- System.out.println(Version.getVersion());
+ System.out.println(Version.getFullVersion());
return 0;
}
}
diff --git a/src/core/lombok/core/Version.java b/src/core/lombok/core/Version.java
index 405fcc9d..295dfae2 100644
--- a/src/core/lombok/core/Version.java
+++ b/src/core/lombok/core/Version.java
@@ -38,7 +38,7 @@ public class Version {
*/
public static void main(String[] args) {
if (args.length > 0) {
- System.out.printf("Lombok v%s \"%s\"\n", VERSION, RELEASE_NAME);
+ System.out.printf("Lombok %s", getFullVersion());
} else {
System.out.println(VERSION);
}
@@ -61,4 +61,8 @@ public class Version {
public static String getReleaseName() {
return RELEASE_NAME;
}
+
+ public static String getFullVersion() {
+ return String.format("v%s \"%s\"\n", VERSION, RELEASE_NAME);
+ }
}