summaryrefslogtreecommitdiff
path: root/util/board_status
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2013-11-12 16:49:45 -0800
committerDavid Hendricks <dhendrix@chromium.org>2013-11-17 10:31:37 +0100
commit1fc65f76f46c4ebef3bfd716908855f3cfb98d89 (patch)
treeb5e7c929f3b2cbfb1d2477761637c989d95327f2 /util/board_status
parent16955fd6654cc50ce8776c6c176bacd9316585f5 (diff)
board_status.sh: move show_help()
This is really only a cosmetic change, but is intended to make it slightly easier to remember to update the help menu whenever options change. Change-Id: I58b5012309229d08da138a01c7cd1c5096423179 Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/4048 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util/board_status')
-rw-r--r--util/board_status/board_status.sh32
1 files changed, 16 insertions, 16 deletions
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 689eda9ac0..84319f10a7 100644
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -18,22 +18,6 @@ UPLOAD_RESULTS=0
LOCAL=0
REMOTE=1
-show_help() {
- echo "Usage:
- ${0} <option>
-
-Options
- -h
- Show this message.
- -C
- Clobber temporary output when finished. Useful for debugging.
- -r <host>
- Obtain machine information from remote host (using ssh).
- -u
- Upload results to coreboot.org.
-"
-}
-
# test a command
#
# $1: test command on remote host (0=no, 1=yes)
@@ -86,6 +70,22 @@ cmd()
exit $EXIT_FAILURE
}
+show_help() {
+ echo "Usage:
+ ${0} <option>
+
+Options
+ -h
+ Show this message.
+ -C
+ Clobber temporary output when finished. Useful for debugging.
+ -r <host>
+ Obtain machine information from remote host (using ssh).
+ -u
+ Upload results to coreboot.org.
+"
+}
+
while getopts "Chr:u" opt; do
case "$opt" in
h)