From 826bd61fb8fa9959daa810aced8ff8d2f2782293 Mon Sep 17 00:00:00 2001 From: Thomas Goldbrunner Date: Thu, 27 Jul 2017 12:52:38 +0200 Subject: [PATCH] Accept only one argument for load-go --- plugins/gimme/gimme.plugin.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/gimme/gimme.plugin.zsh b/plugins/gimme/gimme.plugin.zsh index 913cf38c..3b387e43 100644 --- a/plugins/gimme/gimme.plugin.zsh +++ b/plugins/gimme/gimme.plugin.zsh @@ -9,7 +9,10 @@ load-go() { Run install-gimme and make sure to add ~/bin to your PATH." return 1 fi - if [[ "$#" == 0 ]] ; then + if [[ "$#" > 1 ]] ; then + echo "Usage: load-go GO_VERSION" + return 0 + elif [[ "$#" == 0 ]] ; then eval "$(gimme stable)" else eval "$(gimme ${*})"