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>
This commit is contained in:
parent
16955fd665
commit
1fc65f76f4
@ -18,22 +18,6 @@ UPLOAD_RESULTS=0
|
|||||||
LOCAL=0
|
LOCAL=0
|
||||||
REMOTE=1
|
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
|
# test a command
|
||||||
#
|
#
|
||||||
# $1: test command on remote host (0=no, 1=yes)
|
# $1: test command on remote host (0=no, 1=yes)
|
||||||
@ -86,6 +70,22 @@ cmd()
|
|||||||
exit $EXIT_FAILURE
|
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
|
while getopts "Chr:u" opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
h)
|
h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user