From 0be06ea2c87ecf1751a01ed528a2d3170bdca543 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 1 Mar 2007 14:23:28 +0100 Subject: [PATCH] Accept -foo as well as --foo for options Signed-off-by: Jens Axboe --- init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.c b/init.c index 19424243..2259edf5 100644 --- a/init.c +++ b/init.c @@ -1223,7 +1223,7 @@ static int parse_cmd_line(int argc, char *argv[]) struct thread_data *td = NULL; int c, ini_idx = 0, lidx, ret, dont_add_job = 0; - while ((c = getopt_long(argc, argv, "", long_options, &lidx)) != -1) { + while ((c = getopt_long_only(argc, argv, "", long_options, &lidx)) != -1) { switch (c) { case 't': def_timeout = atoi(optarg); -- 2.25.1