Agregado argumento que indica la version actual
This commit is contained in:
BIN
dist/Programa Caja.jar
vendored
BIN
dist/Programa Caja.jar
vendored
Binary file not shown.
@@ -37,6 +37,7 @@ import javax.swing.UnsupportedLookAndFeelException;
|
|||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
private static final int DATABASE_VERSION = 3;
|
private static final int DATABASE_VERSION = 3;
|
||||||
|
private static final String VERSION = "1.0";
|
||||||
|
|
||||||
static {
|
static {
|
||||||
setUpSystemProperties();
|
setUpSystemProperties();
|
||||||
@@ -45,6 +46,17 @@ public class Main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
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();
|
run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user