Skip to content

Commit

Permalink
init: allow FIO_OPT_STR_SET options to have an optional argument
Browse files Browse the repository at this point in the history
Makes them work like a bool.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Nov 27, 2013
1 parent f01b34a commit ff52be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options.c
Original file line number Diff line number Diff line change
Expand Up @@ -3277,7 +3277,7 @@ static void add_to_lopt(struct option *lopt, struct fio_option *o,
lopt->name = (char *) name;
lopt->val = val;
if (o->type == FIO_OPT_STR_SET)
lopt->has_arg = no_argument;
lopt->has_arg = optional_argument;
else
lopt->has_arg = required_argument;
}
Expand Down

0 comments on commit ff52be3

Please sign in to comment.