On Mon, Nov 10, 2008 at 09:51:59AM +0100, Robert Millan wrote:
>
> Ah, good catch. I didn't notice as it's not translated to Catalan yet.
Btw I just thought that it'd be good to add a short usage message to it,
as well as error detection. See attached patch.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
--- /home/rmh/bin/svn-bisect.old 2008-11-10 10:13:23.000000000 +0100
+++ /home/rmh/bin/svn-bisect 2008-11-10 10:12:21.000000000 +0100
@@ -21,6 +21,16 @@
LC_MESSAGES=C svn info | sed -ne "s/^Revision: //p"
}
+usage ()
+{
+ cat << EOF >&2
+Usage:
+ $0 start
+ $0 good [revision]
+ $0 bad [revision]
+EOF
+}
+
case $1 in
start)
rm -rf .svn-bisect
@@ -35,6 +45,19 @@
echo $1 > .svn-bisect/$what
fi
;;
+ -h|--help)
+ usage
+ exit 0
+ ;;
+ "")
+ usage
+ exit 1
+ ;;
+ *)
+ echo "Unknown parameter \`$1'" >&2
+ usage
+ exit 1
+ ;;
esac
if ! test -e .svn-bisect/good || ! test -e .svn-bisect/bad ; then