summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-20 10:42:08 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-05-20 10:42:08 +0800
commit6e2d2e78a178a40bcbce903020626c62f74bf046 (patch)
tree530feffb727718012573162140aa5b635b789861 /utils
parent7048bb4f8667dc0ce7cf46e96a8db07622d9a39f (diff)
downloadpetitboot-6e2d2e78a178a40bcbce903020626c62f74bf046.zip
petitboot-6e2d2e78a178a40bcbce903020626c62f74bf046.tar.gz
utils/pbconsole: Use here-document for usage text
Allows for cleaner usage message in the source. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'utils')
-rw-r--r--utils/pb-console14
1 files changed, 8 insertions, 6 deletions
diff --git a/utils/pb-console b/utils/pb-console
index c96ac98..00b25ac 100644
--- a/utils/pb-console
+++ b/utils/pb-console
@@ -10,12 +10,14 @@ shell=sh
detach=0
usage() {
- echo "pb-console [OPTIONS] console_dev" >&2
- echo "OPTIONS" >&2
- echo " -d, --detach" >&2
- echo " Start in a detached (background) state." >&2
- echo " -h, --help" >&2
- echo " Print a help message." >&2
+ cat >&2 <<EOF
+pb-console [OPTIONS] console_dev
+OPTIONS
+ -d, --detach
+ Start in a detached (background) state.
+ -h, --help
+ Print a help message.
+EOF
exit 1
}
OpenPOWER on IntegriCloud