From 8975f836e8b79cda60cff8969f8c51fc6120b193 Mon Sep 17 00:00:00 2001
From: Teddy Wing
Date: Wed, 21 Feb 2018 01:04:24 +0100
Subject: git-branch-list: Add a flag to output the program version
---
 git-branch-list | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff --git a/git-branch-list b/git-branch-list
index e7d7dfe..fe24d71 100755
--- a/git-branch-list
+++ b/git-branch-list
@@ -19,6 +19,7 @@
 # along with this program. If not, see .
 
 DATABASE=.git/info/git-branch-list
+VERSION=0.0.1
 
 function initialise_database () {
 	if [ -d .git ]; then
@@ -32,6 +33,11 @@ usage: git branch-list
    or: git branch-list save []
    or: git branch-list drop []
    or: git branch-list ID
+
+Generic options
+
+    -h                    show this help
+    -v                    display version
 __EOF__
 }
 
@@ -110,6 +116,11 @@ case "$command" in
 	-h)
 		print_usage
 
+		exit 0
+		;;
+	-v)
+		echo "$VERSION"
+
 		exit 0
 		;;
 	save)
-- 
cgit v1.2.3