From 606b0a937527e43cf952c41cb8970fca7db3a55b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 2 Jun 2013 21:59:06 -0600 Subject: fix the usage text for several commands --- pbs-plumb-download | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pbs-plumb-download') diff --git a/pbs-plumb-download b/pbs-plumb-download index e321343..1ba4e68 100755 --- a/pbs-plumb-download +++ b/pbs-plumb-download @@ -18,7 +18,13 @@ . libremessages +usage() { + echo "Usage: ${0##*/} SOURCE" + echo "Downloads a source as configured in pbs-convert.conf" +} + main() { + in_array '-h' "$@" && { usage; return 0; } [[ $# != 1 ]] && { usage; return 1; } local source=$1 local url="$(pbs-plumb-config get "source.$source.url")" -- cgit v1.2.3