From e944121c2fd9258d909f39943d90bcaa312eff41 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 19 Jul 2012 17:34:15 -0300 Subject: Enchancing user experience of wordpress script --- templates/wordpress.sh.erb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/wordpress.sh.erb b/templates/wordpress.sh.erb index a6626c6..02b97e2 100644 --- a/templates/wordpress.sh.erb +++ b/templates/wordpress.sh.erb @@ -128,7 +128,11 @@ function wordpress_upgrade { # Usage function wordpress_usage { - echo "Usage: `basename $0` [arguments]" + /usr/local/share/wp-cli/src/bin/wp help + echo "" + echo "Installation management commands:" + echo " wp deploy " + echo " wp upgrade " } # Main procedure @@ -143,7 +147,8 @@ elif [ "$1" == "upgrade" ]; then wordpress_upgrade $* elif [ "$1" == "help" ]; then wordpress_usage - /usr/local/share/wp-cli/src/bin/wp help +elif [ "$1" == "core" ]; then + echo "Please use deploy or upgrade instead." else # Send all other requests to wp-cli /usr/local/share/wp-cli/src/bin/wp $* -- cgit v1.2.3