Accept -foo as well as --foo for options
authorJens Axboe <jens.axboe@oracle.com>
Thu, 1 Mar 2007 13:23:28 +0000 (14:23 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 1 Mar 2007 13:23:28 +0000 (14:23 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c

diff --git a/init.c b/init.c
index 194242439dc93b61b4126ce8a1a9fa3808b08980..2259edf5afee0b3396b89f245ae0c1223afe0726 100644 (file)
--- 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);