[coreboot-gerrit] Change in coreboot[master]: board_status: Show help if no arguments are specified
David Hendricks (Code Review)
gerrit at coreboot.org
Sat Jul 29 20:36:20 CEST 2017
David Hendricks has uploaded this change for review. ( https://review.coreboot.org/20818
Change subject: board_status: Show help if no arguments are specified
......................................................................
board_status: Show help if no arguments are specified
Change-Id: Ib7d358771b21eaf7fbfefbd62d5da3ffbc44c733
Signed-off-by: David Hendricks <david.hendricks at gmail.com>
---
M util/board_status/board_status.sh
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/20818/1
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 1dcca71..d8931f5 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -199,6 +199,11 @@
exit $EXIT_FAILURE
fi
+if [ $# -eq 0 ]; then
+ show_help
+ exit $EXIT_SUCCESS
+fi
+
LONGOPTS="clobber,help,image:,remote-host:,upload-results"
LONGOPTS="${LONGOPTS},serial-device:,serial-speed:"
LONGOPTS="${LONGOPTS},ssh-port:"
--
To view, visit https://review.coreboot.org/20818
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib7d358771b21eaf7fbfefbd62d5da3ffbc44c733
Gerrit-Change-Number: 20818
Gerrit-PatchSet: 1
Gerrit-Owner: David Hendricks <david.hendricks at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170729/fb146b39/attachment.html>
More information about the coreboot-gerrit
mailing list