commit | 0be06ea2c87ecf1751a01ed528a2d3170bdca543 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Thu Mar 01 14:23:28 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Thu Mar 01 14:23:28 2007 +0100 |
tree | fd6dfc3d0e5a6b65ef5b496fffdc53d6fa3ebe45 | |
parent | 0e9f7fac2a501f2baeedd11446e9fe102720c27d [diff] [blame] |
Accept -foo as well as --foo for options Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c index 1942424..2259edf 100644 --- a/init.c +++ b/init.c
@@ -1223,7 +1223,7 @@ 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);