Added '?' check
This commit is contained in:
1 parent
52b3cf0c37
commit
9ca40e68ec
1 file changed
+4
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user