提交 a8edc0ad 编写于 作者: S storypku 提交者: Liu Jiaming

Scripts: updated apollo_config.sh --help

上级 d62056cb
......@@ -28,10 +28,18 @@ function run_bootstrap() {
"${py3_bin}" "${TOP_DIR}/tools/bootstrap.py" "$@"
}
function print_usage() {
info "Usage: $0 [Options]"
info "Options:"
info "${TAB}-i|--interactive Run in interactive mode"
info "${TAB}--noninteractive Run in non-interactive mode"
info "${TAB}-h|--help Show this message and exit"
}
function main() {
local mycfg="$(basename ${BAZEL_CONF})"
if [[ "$#" -eq 0 ]]; then
run_bootstrap --help
print_usage
exit 1
fi
......@@ -41,7 +49,7 @@ function main() {
exit 0
;;
-h | --help)
run_bootstrap --help
print_usage
exit 0
;;
-i | --interactive)
......@@ -57,8 +65,8 @@ function main() {
exit 0
;;
*)
run_bootstrap --help
exit 0
print_usage
exit 1
;;
esac
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册