From b2cb42c37124bfd403500cdec70f3b3aa796aefc Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 20 Feb 2015 16:16:15 +0300 Subject: [PATCH] a better usage function --- zpac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zpac b/zpac index b2eaba8..e4c1688 100755 --- a/zpac +++ b/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] 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 Set the working directory. EOF + + printf '%s\n' "${usage_block[@]}" } aur.search() {