summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-29 21:33:01 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 19:39:54 -0600
commitc0502e7974dd82747fe289c060ff6b1883f87cd5 (patch)
treeeb5c1e9d59b73543b54a7409988c38a7fcbaeebf
parent9f7e280c36e351e3ebdabdea2e528fb68aaab821 (diff)
aur: expand help text, require at least one argument
-rwxr-xr-xsrc/aur13
1 files changed, 10 insertions, 3 deletions
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