chiark / gitweb /
ubuntu-daily: flip -a semantics to mean --authenticated, not --anonymous
[bin.git] / baztag
diff --git a/baztag b/baztag
index 249f61a..5ddb42f 100755 (executable)
--- a/baztag
+++ b/baztag
@@ -30,9 +30,9 @@ while :; do
 done
 
 if [ $# -eq 0 ]; then
-       usage >&2
-       exit 1
+       VERSION="$(dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)"
+else
+       VERSION="$1"
 fi
-VERSION="$1"
 
 $NOACT baz branch "$(bazpath)" "$(bazpath "releases--$VERSION")"