diff options
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() { |