Skip to content

Commit e42e664

Browse files
committed
Display program version
1 parent 6fb50d5 commit e42e664

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/com/joelchristophel/sourceradio/Playlist.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ public class Playlist implements Closeable {
5656

5757
public static void main(String[] args) {
5858
System.out.println();
59-
System.out.println("**** SourceRadio ****");
59+
String version = Playlist.class.getPackage().getImplementationVersion();
60+
version = version == null ? "" : " v" + version;
61+
System.out.println("**** SourceRadio" + version + " ****");
6062
System.out.println();
6163
List<String> argsList = args == null ? new ArrayList<String>() : new ArrayList(Arrays.asList(args));
6264
if (argsList.contains("-d")) { // Restore default properties

0 commit comments

Comments
 (0)