Now this works:
fio -C host1 --cmdhelp=ioengine -C host2 --cmdhelp=ioengine
etc.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
terse_output = 1;
break;
case 'h':
terse_output = 1;
break;
case 'h':
fio_show_option_help(optarg);
fio_show_option_help(optarg);
break;
case 's':
dump_cmdline = 1;
break;
case 's':
dump_cmdline = 1;
read_only = 1;
break;
case 'v':
read_only = 1;
break;
case 'v':
log_info("fio %s\n", fio_version_string);
log_info("fio %s\n", fio_version_string);
break;
case 'V':
terse_version = atoi(optarg);
break;
case 'V':
terse_version = atoi(optarg);
ret = add_job(td, td->o.name ?: "fio", 0);
}
ret = add_job(td, td->o.name ?: "fio", 0);
}
- while (optind < argc) {
+ while (!ret && optind < argc) {
ini_idx++;
ini_file = realloc(ini_file, ini_idx * sizeof(char *));
ini_file[ini_idx - 1] = strdup(argv[optind]);
ini_idx++;
ini_file = realloc(ini_file, ini_idx * sizeof(char *));
ini_file[ini_idx - 1] = strdup(argv[optind]);