]> git.wh0rd.org Git - home.git/commitdiff
cvs-import: add help
authorMike Frysinger <vapier@gentoo.org>
Thu, 30 Jun 2011 20:54:21 +0000 (16:54 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:38 +0000 (15:36 -0400)
.bin/cvs-import

index 754dbe7d98a4a83a766657de6a2d37fc98017c61..f30b22578eafebda40971fa1f7a7d962a063adcf 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/bash
 
+if [[ $# -eq 0 ]] || [[ $1 == "-h" ]] ; then
+       echo "Usage: ${0##*/} <dir to import> [more dirs]"
+       exit 1
+fi
+
 dir=$1
 if [[ ! -e ${dir} ]] ; then
        echo "cvs-import: $1: directory does not exist" 1>&2