From e61ad7f80b1a72f9f0077ac4e93bab407c6add93 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 20 May 2014 23:38:53 +0900 Subject: [PATCH] Improve run-example.sh - More usage example - Newlines for prettier output --- run-example.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run-example.sh b/run-example.sh index b14c1c8ef2..b36f911f15 100755 --- a/run-example.sh +++ b/run-example.sh @@ -28,11 +28,14 @@ done if [[ -z "$EXAMPLE" ]] || [[ -z "$EXAMPLE_CLASS" ]] || [[ $# -ne 0 ]]; then echo " Usage: $0 [-D[=] ...] " >&2 echo "Example: $0 -Dport=8443 -Dssl http-server" >&2 + echo " $0 -Dhost=127.0.0.1 -Dport=8009 echo-client" >&2 echo >&2 echo "Available examples:" >&2 + echo >&2 for E in "${!EXAMPLE_MAP[@]}"; do echo " $E" done | sort >&2 + echo >&2 exit 1 fi