From: Mike Frysinger Date: Thu, 30 Jun 2011 20:54:21 +0000 (-0400) Subject: cvs-import: add help X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ad0ac428e162583d3fe09b65b249c75e1c6c854e;p=home.git cvs-import: add help --- diff --git a/.bin/cvs-import b/.bin/cvs-import index 754dbe7..f30b225 100755 --- a/.bin/cvs-import +++ b/.bin/cvs-import @@ -1,5 +1,10 @@ #!/bin/bash +if [[ $# -eq 0 ]] || [[ $1 == "-h" ]] ; then + echo "Usage: ${0##*/} [more dirs]" + exit 1 +fi + dir=$1 if [[ ! -e ${dir} ]] ; then echo "cvs-import: $1: directory does not exist" 1>&2