From 8afa72e56975b1fbada4b53ddaa1655a2f6d6427 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Tue, 19 Jan 2016 22:42:13 +0000 Subject: [PATCH] Add some documentation. Sponsored by: EMC / Isilon Storage Division --- tools/build/check-links.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/build/check-links.sh b/tools/build/check-links.sh index 80e1ad1e914d..937f61c164a6 100755 --- a/tools/build/check-links.sh +++ b/tools/build/check-links.sh @@ -18,6 +18,15 @@ libkey() { return 0 } +usage() { + cat <<-EOF + usage: $0 [-Uv] file + -U: Skip looking for unresolved symbols. + -v: Show which library each symbol is resolved to. + EOF + exit 0 +} + ret=0 CHECK_UNRESOLVED=1 VERBOSE_RESOLVED=0 @@ -25,6 +34,7 @@ while getopts "Uv" flag; do case "${flag}" in U) CHECK_UNRESOLVED=0 ;; v) VERBOSE_RESOLVED=1 ;; + *) usage ;; esac done shift $((OPTIND-1))