[coreboot-gerrit] New patch to review for coreboot: board_status: Support --help option
Jonathan Neuschäfer (j.neuschaefer@gmx.net)
gerrit at coreboot.org
Sat May 7 06:07:10 CEST 2016
Jonathan Neuschäfer (j.neuschaefer at gmx.net) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14684
-gerrit
commit c86ce622e4043e6ad0bd914fd9e07219077f4d54
Author: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
Date: Sat May 7 05:43:48 2016 +0200
board_status: Support --help option
Change-Id: Ie4893e746209b2380e0248d57926f79d8a5dd7a8
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
---
util/board_status/board_status.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index f897bdc..7c2408f 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -172,7 +172,7 @@ show_help() {
${0} <option>
Options
- -h
+ -h, --help
Show this message.
-C
Clobber temporary output when finished. Useful for debugging.
@@ -197,12 +197,12 @@ if [ $? -ne 4 ]; then
exit $EXIT_FAILURE
fi
-ARGS=$(getopt -o Chi:r:s:S:u -l "ssh-port:" -n "$0" -- "$@");
+ARGS=$(getopt -o Chi:r:s:S:u -l "ssh-port:,help" -n "$0" -- "$@");
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
eval set -- "$ARGS"
while true ; do
case "$1" in
- -h)
+ -h|--help)
show_help
exit $EXIT_SUCCESS
;;
More information about the coreboot-gerrit
mailing list