From 8c16b7c6f229b187bae94cc86ac8fb3df04859df Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 7 Jun 2011 11:39:39 -0400 Subject: mkinitcpio: declare usage as a heredoc alphabetize the usage while we're at it --- mkinitcpio | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index 53326f0..295d194 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -36,24 +36,28 @@ unset GREP_OPTIONS APPNAME=${0##*/} -usage () -{ - echo "${APPNAME}: usage" - echo " -c CONFIG Use CONFIG file. default: /etc/mkinitcpio.conf" - echo " -k KERNELVERSION Use KERNELVERSION. default: $(uname -r)" - echo " -s Save build directory. default: no" - echo " -b BASEDIR Use BASEDIR. default: /" - echo " -g IMAGE Generate a cpio image as IMAGE. default: no" - echo " -p PRESET Build specified preset." - echo " -m MESSAGE Print MESSAGE before passing control to init." - echo " -n Disable colorized output messages." - echo " -S SKIPHOOKS Skip SKIPHOOKS (comma-separated) when building the image." - echo " -t TMPDIR Use TMPDIR as the temporary build directory." - echo " -v Verbose output. Default: no" - echo " -M Display modules found via autodetection." - echo " -L List all available hooks." - echo " -H HOOKNAME Output help for hook 'HOOKNAME'." - echo " -h This message." +usage() { + cat <