diff --git a/tools/flterm.c b/tools/flterm.c index 2a1c71077..17d28a2e1 100644 --- a/tools/flterm.c +++ b/tools/flterm.c @@ -579,7 +579,8 @@ enum { OPTION_CMDLINEADR, OPTION_INITRD, OPTION_INITRDADR, - OPTION_LOG + OPTION_LOG, + OPTION_HELP, }; static const struct option options[] = { @@ -638,6 +639,11 @@ static const struct option options[] = { .has_arg = 1, .val = OPTION_LOG }, + { + .name = "help", + .has_arg = 0, + .val = OPTION_HELP + }, { .name = NULL } @@ -753,6 +759,9 @@ int main(int argc, char *argv[]) free(log_path); log_path = strdup(optarg); break; + case OPTION_HELP: + print_usage(); + return 0; } }