diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-29 21:33:01 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-05 19:39:54 -0600 |
commit | c0502e7974dd82747fe289c060ff6b1883f87cd5 (patch) | |
tree | eb5c1e9d59b73543b54a7409988c38a7fcbaeebf /src | |
parent | 9f7e280c36e351e3ebdabdea2e528fb68aaab821 (diff) |
aur: expand help text, require at least one argument
Diffstat (limited to 'src')
-rwxr-xr-x | src/aur | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -23,10 +23,13 @@ cmd=${0##*/} usage() { - echo "Usage: $cmd pkgname-from-aur1 [pkgname-from-aur2 ...]" + echo "Usage: $cmd [-h] pkgname-from-aur1 [pkgname-from-aur2 ...]" echo - echo "This script will download packages from aur to the current dir" - echo "and check their license for nonfree issues." + echo "This script will download packages from AUR to the current" + echo "directory and check their license for nonfree issues. This does" + echo "not mean that they are free; they may be incorrectly labeled, or" + echo "have other freedom issues. It's a tool to help Parabola" + echo "packagers, not to help users install things directly from AUR." } main() { @@ -36,6 +39,10 @@ main() { *) usage; exit 1;; esac done + if [[ $# -lt 1 ]]; then + usage >&2 + return 1 + fi . $(librelib conf.sh) load_files libretools |