summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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