eal: factorise unsupported option handling
[dpdk.git] / lib / librte_eal / linuxapp / eal / eal.c
index 633e3b8..bf63744 100644 (file)
@@ -938,6 +938,12 @@ eal_parse_args(int argc, char **argv)
                        }
                        else if (!strcmp(lgopts[option_index].name, OPT_CREATE_UIO_DEV)) {
                                internal_config.create_uio_dev = 1;
+                       } else {
+                               RTE_LOG(ERR, EAL, "Option %s is not supported "
+                                       "on Linux\n",
+                                       lgopts[option_index].name);
+                               eal_usage(prgname);
+                               return -1;
                        }
                        break;