From cd6a5c077874ac6baacc8b073195aaea81a1e247 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sun, 28 Jun 2015 12:51:11 +0200 Subject: Made good progress with introspective sort, fixed ant build issue, ant builds are now done on a different bin directory --- src/eu/equalparts/cardbase/cli/CardbaseCLI.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/eu/equalparts/cardbase/cli') diff --git a/src/eu/equalparts/cardbase/cli/CardbaseCLI.java b/src/eu/equalparts/cardbase/cli/CardbaseCLI.java index 6a7f013..866314a 100644 --- a/src/eu/equalparts/cardbase/cli/CardbaseCLI.java +++ b/src/eu/equalparts/cardbase/cli/CardbaseCLI.java @@ -50,6 +50,10 @@ public class CardbaseCLI { * Location of the help file. */ private static final String HELP_FILE_PATH = "/help"; + /** + * Program version. + */ + private static final String VERSION = "1.0"; /** * The last action performed by the user. */ @@ -162,6 +166,8 @@ public class CardbaseCLI { } else if (command.equalsIgnoreCase("write") || command.equalsIgnoreCase("save")) { write(args); + } else if (command.equalsIgnoreCase("version")) { + version(); } else if (command.equalsIgnoreCase("exit")) { exit(); } else if (command.equalsIgnoreCase("sets")) { @@ -233,6 +239,13 @@ public class CardbaseCLI { } } + /** + * Print program version. + */ + public void version() { + System.out.println("Cardbase v" + VERSION); + } + /** * Exit procedure. */ -- cgit v1.2.3