From c0502e7974dd82747fe289c060ff6b1883f87cd5 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 29 May 2013 21:33:01 -0600 Subject: aur: expand help text, require at least one argument --- src/aur | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/aur') diff --git a/src/aur b/src/aur index 29cc379..b325974 100755 --- a/src/aur +++ b/src/aur @@ -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 -- cgit v1.2.2