Merge branch 'fix-version' (#17) into master

This commit is contained in:
Jonas Tobias Hopusch 2022-01-02 17:15:21 +01:00
commit 427f61e1c2
Failed to generate hash of commit

View file

@ -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);