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