From 41294f7a76f581b6d64be48f90581dcc695b8ba5 Mon Sep 17 00:00:00 2001 From: Zeh Rizzatti Date: Thu, 7 Feb 2013 23:24:25 -0300 Subject: [PATCH] Fix usage on install.sh --- install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index f59d4606..56926d2f 100755 --- a/install.sh +++ b/install.sh @@ -35,18 +35,25 @@ function linux_cmake_install { exit 1 } -if [[ $# -gt 1 ]]; then +function usage { echo "Usage: $0 [--clang-completer]" exit 0 +} + +if [[ $# -gt 1 ]]; then + usage fi case "$1" in --clang-completer) cmake_args='-DUSE_CLANG_COMPLETER=ON' ;; - *) + '') cmake_args='' ;; + *) + usage + ;; esac if [[ ! -z `which cmake &> /dev/null` ]]; then