From 50ae950203545622bd214c9f2bfd5e88956abad9 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 35fb34da7a..82c529296c 100755 --- a/run-example.sh +++ b/run-example.sh @@ -30,11 +30,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