a better usage function

This commit is contained in:
Jack L. Frost 2015-02-20 16:16:15 +03:00
parent 95c0ffa43b
commit b2cb42c371
1 changed files with 3 additions and 1 deletions

4
zpac
View File

@ -13,7 +13,7 @@ echo() { printf '%s\n' "$*"; }
err() { echo "$*" >&2; }
usage() {
while read; do echo "$REPLY"; done <<- EOF
while read; do usage_block+=( "$REPLY" ); done <<- EOF
Usage: $_self [flags] <package>
Flags:
-h Show this message.
@ -24,6 +24,8 @@ usage() {
-f Force downloading package sources even if they are already present in the working directory.
-w <dir> Set the working directory.
EOF
printf '%s\n' "${usage_block[@]}"
}
aur.search() {