[pacman-dev] [PATCH 06/11] paclist: streamline usage function

Gordian Edenhofer gordian.edenhofer at gmail.com
Thu Sep 29 10:23:06 UTC 2016


Signed-off-by: Gordian Edenhofer <gordian.edenhofer at gmail.com>
---
 contrib/paclist.sh.in | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/contrib/paclist.sh.in b/contrib/paclist.sh.in
index f4fd540..156f9d3 100644
--- a/contrib/paclist.sh.in
+++ b/contrib/paclist.sh.in
@@ -31,13 +31,15 @@ if ! type gettext &>/dev/null; then
 fi
 
 usage() {
-	printf "%s (pacman) v%s\n" "${myname}" "${myver}"
+	printf "%s (pacman) %s\n" "$myname" "$myver"
 	echo
-	printf "List all packages installed from a given repository\n" "${myname}"
+	printf -- "$(gettext "List all packages installed from a given repository")\n"
 	echo
-	printf "Usage: %s <repository>\n" "${myname}"
+	printf -- "$(gettext "Usage: %s <repository>")\n" "$0"
+	echo
+	printf -- "$(gettext "Examples:")"
+	printf -- "    %s testing\n" "$myname"
 	echo
-	printf "Example: %s testing\n" "${myname}"
 }
 
 version() {
-- 
2.10.0


More information about the pacman-dev mailing list