From: Richard Hartmann Date: Sat, 22 Oct 2011 16:42:55 +0000 (+0200) Subject: `vcsh init` without repo name prints help, now X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/da296ac12ebac1ec10c3855fe62dac752cc5ff10?ds=inline;hp=-c `vcsh init` without repo name prints help, now --- da296ac12ebac1ec10c3855fe62dac752cc5ff10 diff --git a/vcsh b/vcsh index 9514f05..38c1e0d 100755 --- a/vcsh +++ b/vcsh @@ -31,18 +31,18 @@ verbose() { help() { echo "usage: $SELF - help Display this help + help Display this help - list List all repos + list List all repos - run - Use this repository + run \\ + Use this repository - init Initialize a new repository - clone - [] Clone from an existing repository + init Initialize a new repository + clone \\ + [] Clone from an existing repository - exit Exit vcsh mode" >&2 + exit Exit vcsh mode" >&2 } use() { @@ -151,6 +151,7 @@ elif [ "$1" = 'clone' ]; then elif [ "$1" = 'init' ]; then verbose "init begin" + [ -z $2 ] && help; return 0 export REPO_NAME="$2" export GIT_DIR="$VCSH_BASE/$REPO_NAME.git" init