summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-10-29 22:42:41 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-10-29 22:42:41 +0200
commit0b42100bfaf1a237c6254a9737ec5d7623f77840 (patch)
treeaf395b154b275232d5fd8553b4c64e51b6d4c961
parent71f58b274b4a13771c52c987f2ef58d9be59f68f (diff)
add -v (version) option
Signed-off-by: Florian Pritz <bluewind@xssn.at>
-rwxr-xr-xfb3
1 files changed, 2 insertions, 1 deletions
diff --git a/fb b/fb
index 66206e1..6781ed4 100755
--- a/fb
+++ b/fb
@@ -109,7 +109,7 @@ usage: [cat |] `basename "$0"` [switches] [options] [<file(s)|ID(s)|folder(s)>]
!
}
-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