Added '?' check

This commit is contained in:
microbuilder committed 2016-12-16 18:02:32 +01:00
1 parent 52b3cf0c37
commit 9ca40e68ec
1 file changed
+4 -1
+4 -1
View File
@@ -114,10 +114,13 @@ main(int argc, char **argv)
memset(cmd, '\0', sizeof(cmd));
memset(tty, '\0', sizeof(cmd));
/* Display help menu on zero params */
/* Display help menu on zero params or '?' */
if (argc == 1) {
bootutil_help(0);
}
if ((argc == 2) && (strcmp(argv[1], "?") == 0)) {
bootutil_help(0);
}
/* Parse input params */
while ((ch = getopt(argc, argv, "d:c:ghrv")) != -1) {