Skip to content

Commit

Permalink
Improve run-example.sh
Browse files Browse the repository at this point in the history
- More usage example
- Newlines for prettier output
  • Loading branch information
trustin committed May 20, 2014
1 parent 4436870 commit e61ad7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ done
if [[ -z "$EXAMPLE" ]] || [[ -z "$EXAMPLE_CLASS" ]] || [[ $# -ne 0 ]]; then
echo " Usage: $0 [-D<name>[=<value>] ...] <example-name>" >&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

Expand Down

0 comments on commit e61ad7f

Please sign in to comment.