diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-02 21:59:06 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-02 21:59:06 -0600 |
commit | 606b0a937527e43cf952c41cb8970fca7db3a55b (patch) | |
tree | 8df12dfd542ec6181668b61cc2900b8e2c0635bc /pbs-plumb-download | |
parent | 48b5d4a35833c3cd528576e085598c72227b1624 (diff) |
fix the usage text for several commands
Diffstat (limited to 'pbs-plumb-download')
-rwxr-xr-x | pbs-plumb-download | 6 |
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")" |