Skip to content

Commit bc1450e

Browse files
mithrosbourdeauducq
authored andcommittedSep 21, 2015
Adding --help option to flterm.
1 parent 31956de commit bc1450e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed
 

Diff for: ‎tools/flterm.c

+10-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,8 @@ enum {
579579
OPTION_CMDLINEADR,
580580
OPTION_INITRD,
581581
OPTION_INITRDADR,
582-
OPTION_LOG
582+
OPTION_LOG,
583+
OPTION_HELP,
583584
};
584585

585586
static const struct option options[] = {
@@ -638,6 +639,11 @@ static const struct option options[] = {
638639
.has_arg = 1,
639640
.val = OPTION_LOG
640641
},
642+
{
643+
.name = "help",
644+
.has_arg = 0,
645+
.val = OPTION_HELP
646+
},
641647
{
642648
.name = NULL
643649
}
@@ -753,6 +759,9 @@ int main(int argc, char *argv[])
753759
free(log_path);
754760
log_path = strdup(optarg);
755761
break;
762+
case OPTION_HELP:
763+
print_usage();
764+
return 0;
756765
}
757766
}
758767

0 commit comments

Comments
 (0)
Please sign in to comment.