summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-05-23 10:39:16 -0600
committerJens Axboe <axboe@fb.com>2016-05-23 10:39:16 -0600
commitbbcacb72ac5f81b77a96981e6d00d9134360e7c5 (patch)
treef445ba77d412a009d90dd1df6189f4c06be8a997
parentcce2fdfe99710ac8f9b80d1a9ddbb2397ef6ef20 (diff)
downloadfio-bbcacb72ac5f81b77a96981e6d00d9134360e7c5.tar.gz
fio-bbcacb72ac5f81b77a96981e6d00d9134360e7c5.tar.bz2
parse: warn if option is missing a long option variant
Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index ec0f8707..963f1f8c 100644
--- a/parse.c
+++ b/parse.c
@@ -1234,6 +1234,8 @@ void option_init(struct fio_option *o)
{
if (o->type == FIO_OPT_DEPRECATED)
return;
+ if (o->name && !o->lname)
+ log_err("Option %s: missing long option name\n", o->name);
if (o->type == FIO_OPT_BOOL) {
o->minval = 0;
o->maxval = 1;