From 0b42100bfaf1a237c6254a9737ec5d7623f77840 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 29 Oct 2010 22:42:41 +0200 Subject: add -v (version) option Signed-off-by: Florian Pritz --- fb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fb b/fb index 66206e1..6781ed4 100755 --- a/fb +++ b/fb @@ -109,7 +109,7 @@ usage: [cat |] `basename "$0"` [switches] [options] [] ! } -while getopts "e:gdhtc" OPTION; do +while getopts "e:gdhtcv" OPTION; do case $OPTION in e) EXTENSION="$OPTARG";; g) GET=1;; @@ -124,6 +124,7 @@ while getopts "e:gdhtc" OPTION; do ;; t) TAR=1;; d) DELETE=1;; + v) echo "$VERSION"; exit 0;; h|\?) help; exit 0;; esac done -- cgit v1.2.3-24-g4f1b