summaryrefslogtreecommitdiff
path: root/pbs-plumb-download
diff options
context:
space:
mode:
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")"