Fix usage on install.sh
This commit is contained in:
parent
2f3303e050
commit
41294f7a76
11
install.sh
11
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
|
||||
|
Loading…
Reference in New Issue
Block a user