for_imagex_command(cmd) {
if (strcmp(cmd->name, *argv) == 0) {
ret = cmd->func(argc, argv);
for_imagex_command(cmd) {
if (strcmp(cmd->name, *argv) == 0) {
ret = cmd->func(argc, argv);
/* For 'imagex info' and 'imagex dir', data printed to standard output
* is part of the program's actual behavior and not just for
* informational purposes, so we should set a failure exit status if
/* For 'imagex info' and 'imagex dir', data printed to standard output
* is part of the program's actual behavior and not just for
* informational purposes, so we should set a failure exit status if
/* Exit status (ret): -1 indicates an error found by 'imagex' outside
* of the wimlib library code. 0 indicates success. > 0 indicates a
* wimlib error code from which an error message can be printed. */
/* Exit status (ret): -1 indicates an error found by 'imagex' outside
* of the wimlib library code. 0 indicates success. > 0 indicates a
* wimlib error code from which an error message can be printed. */