repo-add: clean up help messages
Use consistent blank lines across all commands, get rid of the
translated double newlines which only serve to confuse translators, and fix -h/--help for that extra special third command this script offers. Signed-off-by: Dan McGee <dan@archlinux.org> --- scripts/repo-add.sh.in | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index 28339e6..cfff102 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -48,30 +48,38 @@ usage() { printf "%s (pacman) %s " "$cmd" "$myver" if [[ $cmd == "repo-add" ]] ; then printf "$(gettext "Usage: repo-add [options] <path-to-db> <package|delta> ... ")" + printf " " printf "$(gettext " repo-add will update a package database by reading a package file. -Multiple packages to add can be specified on the command line. ")" +Multiple packages to add can be specified on the command line. ")" + printf " " printf "$(gettext "Options: ")" printf "$(gettext " -d, --delta generate and add delta for package update ")" printf "$(gettext " -f, --files update database's file list ")" elif [[ $cmd == "repo-remove" ]] ; then - printf "$(gettext "Usage: repo-remove [options] <path-to-db> <packagename|delta> ... ")" + printf "$(gettext "Usage: repo-remove [options] <path-to-db> <packagename|delta> ... ")" + printf " " printf "$(gettext " repo-remove will update a package database by removing the package name specified on the command line from the given repo database. Multiple -packages to remove can be specified on the command line. ")" +packages to remove can be specified on the command line. ")" + printf " " printf "$(gettext "Options: ")" + else + printf "$(gettext "Please move along, there is nothing to see here. ")" + return fi printf "$(gettext " -q, --quiet minimize output ")" printf "$(gettext " -s, --sign sign database with GnuPG after update ")" printf "$(gettext " -k, --key <key> use the specified key to sign the database ")" printf "$(gettext " -v, --verify verify database's signature before update ")" printf "$(gettext " -See %s(8) for more details and descriptions of the available options. ")" $cmd +See %s(8) for more details and descriptions of the available options. ")" $cmd + printf " " if [[ $cmd == "repo-add" ]] ; then - echo "$(gettext "Example: repo-add /path/to/repo.db.tar.gz pacman-3.0.0-1-i686.pkg.tar.gz")" + printf "$(gettext "Example: repo-add /path/to/repo.db.tar.gz pacman-3.0.0-1-i686.pkg.tar.gz ")" elif [[ $cmd == "repo-remove" ]] ; then - echo "$(gettext "Example: repo-remove /path/to/repo.db.tar.gz kernel26")" + printf "$(gettext "Example: repo-remove /path/to/repo.db.tar.gz kernel26 ")" fi } -- 1.7.8.3 |
| All times are GMT. The time now is 03:17 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.