summaryrefslogtreecommitdiff
path: root/pbs-plumb-download
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-02 21:59:06 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-02 21:59:06 -0600
commit606b0a937527e43cf952c41cb8970fca7db3a55b (patch)
tree8df12dfd542ec6181668b61cc2900b8e2c0635bc /pbs-plumb-download
parent48b5d4a35833c3cd528576e085598c72227b1624 (diff)
fix the usage text for several commands
Diffstat (limited to 'pbs-plumb-download')
-rwxr-xr-xpbs-plumb-download6
1 files changed, 6 insertions, 0 deletions
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")"