Agregado argumento que indica la version actual
This commit is contained in:
@@ -37,6 +37,7 @@ import javax.swing.UnsupportedLookAndFeelException;
|
||||
public class Main {
|
||||
|
||||
private static final int DATABASE_VERSION = 3;
|
||||
private static final String VERSION = "1.0";
|
||||
|
||||
static {
|
||||
setUpSystemProperties();
|
||||
@@ -45,6 +46,17 @@ public class Main {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
if (args.length > 0){
|
||||
switch (args[0]){
|
||||
case "-v":
|
||||
case "--version":
|
||||
System.out.println("--------------------------------------------------------------------------------");
|
||||
System.out.println(String.format("Software version: %s", VERSION));
|
||||
System.out.println(String.format("Database version: %o", DATABASE_VERSION));
|
||||
System.out.println("--------------------------------------------------------------------------------");
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
||||
run();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user