From 2b0796f6a5b1998216aa5740f273693f6af35479 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Fri, 22 Mar 2013 18:19:26 +0530 Subject: [PATCH] Add a `Usage:` line to `-use` command's err output. --- antigen.zsh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index 0f0ba50..433158f 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -372,12 +372,13 @@ antigen-cleanup () { } antigen-use () { - if [[ $1 == "oh-my-zsh" ]]; then + if [[ $1 == oh-my-zsh ]]; then antigen-lib $@ - elif [[ $1 == "prezto" ]]; then + elif [[ $1 == prezto ]]; then antigen-prezto-lib $@ else - echo 'Antigen currently supports only following libraries:' >&2 + echo 'Usage: antigen-use ' >&2 + echo 'Where is any one of the following:' >&2 echo ' * oh-my-zsh' >&2 echo ' * prezto' >&2 return 1 -- 2.0.0