X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/b85739ddd6bf1f01030aa3e694926f2fa3370ccc..da296ac12ebac1ec10c3855fe62dac752cc5ff10:/vcsh 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