[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;
 }