a better usage function
This commit is contained in:
parent
95c0ffa43b
commit
b2cb42c371
4
zpac
4
zpac
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user