From da296ac12ebac1ec10c3855fe62dac752cc5ff10 Mon Sep 17 00:00:00 2001 From: Richard Hartmann <richih.mailinglist@gmail.com> Date: Sat, 22 Oct 2011 18:42:55 +0200 Subject: [PATCH] `vcsh init` without repo name prints help, now --- vcsh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/vcsh b/vcsh index 9514f05..38c1e0d 100755 --- a/vcsh +++ b/vcsh @@ -31,18 +31,18 @@ verbose() { help() { echo "usage: $SELF <args> - help Display this help + help Display this help - list List all repos + list List all repos - run <repo> - <command> Use this repository + run <repo> \\ + <command> Use this repository - init Initialize a new repository - clone <remote> - [<repo>] Clone from an existing repository + init <repo> Initialize a new repository + clone <remote> \\ + [<repo>] 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 -- GitLab