From 7f0709463a0f0fa9012083d9221f35f7dca79e1c Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Sun, 2 Jan 2022 17:10:32 +0100 Subject: [PATCH] Fix bug with version flag --- src/main/java/de/jotoho/waituntil/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/jotoho/waituntil/Main.java b/src/main/java/de/jotoho/waituntil/Main.java index e53a147..a891ef3 100644 --- a/src/main/java/de/jotoho/waituntil/Main.java +++ b/src/main/java/de/jotoho/waituntil/Main.java @@ -36,7 +36,7 @@ public final class Main { } else if (options.contains("version")) { final var thisPackage = Main.class.getPackage(); final var appVersion = thisPackage.getImplementationVersion() != null ? thisPackage.getImplementationVersion() :"UNKNOWN"; - System.out.println("de.jotoho.waituntil version $appVersion"); + System.out.println("de.jotoho.waituntil version " + appVersion); } else if (words.size() == 1) { final var target = TimeCalculator.calculateAndAnnounceTargetTime(words.iterator().next()); Sleep.waitUntilTimeStamp(target);