We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31956de commit bc1450eCopy full SHA for bc1450e
tools/flterm.c
@@ -579,7 +579,8 @@ enum {
579
OPTION_CMDLINEADR,
580
OPTION_INITRD,
581
OPTION_INITRDADR,
582
- OPTION_LOG
+ OPTION_LOG,
583
+ OPTION_HELP,
584
};
585
586
static const struct option options[] = {
@@ -638,6 +639,11 @@ static const struct option options[] = {
638
639
.has_arg = 1,
640
.val = OPTION_LOG
641
},
642
+ {
643
+ .name = "help",
644
+ .has_arg = 0,
645
+ .val = OPTION_HELP
646
+ },
647
{
648
.name = NULL
649
}
@@ -753,6 +759,9 @@ int main(int argc, char *argv[])
753
759
free(log_path);
754
760
log_path = strdup(optarg);
755
761
break;
762
+ case OPTION_HELP:
763
+ print_usage();
764
+ return 0;
756
765
757
766
758
767
0 commit comments