implement -v

This commit is contained in:
Thomas Levine 2016-01-29 17:17:31 +00:00
parent 3f05794d7e
commit d96f3707e9
1 changed files with 5 additions and 0 deletions

5
urchin
View File

@ -4,6 +4,9 @@
# which breaks fullpath().
unset CDPATH
# Urchin version number
VERSION=0.0.6
fullpath() {
(
cd -- "$1"
@ -259,6 +262,8 @@ do
-t) tap_format=true;;
-h|--help) urchin_help
exit 0;;
-v) echo "$VERSION"
exit;;
-*) urchin_help >&2
exit 1;;
*) break;;