From ad0ac428e162583d3fe09b65b249c75e1c6c854e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 30 Jun 2011 16:54:21 -0400 Subject: [PATCH] cvs-import: add help --- .bin/cvs-import | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5