diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-06-28 12:51:11 +0200 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-06-28 12:51:11 +0200 |
commit | cd6a5c077874ac6baacc8b073195aaea81a1e247 (patch) | |
tree | 995a922ff323c445d82f7af9ee4dba53c591115c /src/eu/equalparts/cardbase/cli | |
parent | bf29c3d96160eeaa64f60a512a0a9f4d7c85167a (diff) |
Made good progress with introspective sort, fixed ant build issue, ant builds are now done on a different bin directory
Diffstat (limited to 'src/eu/equalparts/cardbase/cli')
-rw-r--r-- | src/eu/equalparts/cardbase/cli/CardbaseCLI.java | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ -51,6 +51,10 @@ public class CardbaseCLI { */ private static final String HELP_FILE_PATH = "/help"; /** + * Program version. + */ + private static final String VERSION = "1.0"; + /** * The last action performed by the user. */ private Action lastAction = null; @@ -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")) { @@ -234,6 +240,13 @@ public class CardbaseCLI { } /** + * Print program version. + */ + public void version() { + System.out.println("Cardbase v" + VERSION); + } + + /** * Exit procedure. */ public void exit() { |