commit | c9fad893e8333682d6ab67a269b0dd74f303c5bc | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@suse.de> | Sat May 27 17:26:50 2006 +0200 |
committer | Jens Axboe <axboe@suse.de> | Sat May 27 17:26:50 2006 +0200 |
tree | 153a756d1c0702504ba438d5a2b2074bd918585c | |
parent | aea47d444b02bd7c622f82bb73151fd7136a499f [diff] [blame] |
[PATCH] Allow job file to be last argument Use fio -f <jobfile> or just fio <jobfile>
diff --git a/fio-ini.c b/fio-ini.c index 126e325..23810ba 100644 --- a/fio-ini.c +++ b/fio-ini.c
@@ -969,6 +969,9 @@ exit(0); } } + + if (!ini_file && argc > 1 && argv[argc - 1][0] != '-') + ini_file = strdup(argv[argc - 1]); } static void free_shm(void) @@ -1030,8 +1033,10 @@ return 1; } - if (parse_jobs_ini(ini_file)) + if (parse_jobs_ini(ini_file)) { + usage(argv[0]); return 1; + } return 0; }