summaryrefslogtreecommitdiffstats
path: root/contrib/checkupdates.sh.in
diff options
context:
space:
mode:
authorJason St. John <jstjohn@purdue.edu>2013-11-08 08:53:33 +0100
committerAllan McRae <allan@archlinux.org>2013-11-15 02:02:27 +0100
commita15fd48016014249a13db7a437b5e4f5937f6158 (patch)
treeeecd9c3717fcb05d58983ce89f4d3778502f0cc4 /contrib/checkupdates.sh.in
parent7bfaa358ea45c5d527a382bb5fef734b3134bd6f (diff)
downloadpacman-a15fd48016014249a13db7a437b5e4f5937f6158.tar.gz
pacman-a15fd48016014249a13db7a437b5e4f5937f6158.tar.xz
Improve --help switch output for pacman contrib and pacman scripts
Unify the formatting of the --help switch for pacman utils, if it exists. All of the pacman utils will now output help text using the following format: util-name (pacman) v<pacman version> one line description of util's purpose Usage: util-name [options] -b, --bar whatever --bar does -f, --foo whatever --foo does -h, --help display this help message Reported-by: Karol Błażewicz <karol.blazewicz at gmail.com> Signed-off-by: Jason St. John <jstjohn@purdue.edu>
Diffstat (limited to 'contrib/checkupdates.sh.in')
-rw-r--r--contrib/checkupdates.sh.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/contrib/checkupdates.sh.in b/contrib/checkupdates.sh.in
index 48ceff94..413b78ac 100644
--- a/contrib/checkupdates.sh.in
+++ b/contrib/checkupdates.sh.in
@@ -18,10 +18,17 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
+declare -r myname='checkupdates'
+declare -r myver='@PACKAGE_VERSION@'
+
if (( $# > 0 )); then
- echo "checkupdates: Safely print a list of pending updates."
- echo "Use: checkupdates"
- echo "Export the 'CHECKUPDATES_DB' variable to change the path of the temporary database."
+ echo "${myname} (pacman) v${myver}"
+ echo
+ echo "Safely print a list of pending updates"
+ echo
+ echo "Usage: ${myname}"
+ echo
+ echo 'Note: Export the "CHECKUPDATES_DB" variable to change the path of the temporary database.'
exit 0
fi