While at it specify which option is missing when picoproj fails..
}
if (input_path == NULL) {
}
if (input_path == NULL) {
- fprintf(stderr, "The -i option must always be passed\n");
+ fprintf(stderr, "The -i option must always be passed\n\n");
+ usage(argv[0]);
ret = -EINVAL;
goto out;
}
ret = -EINVAL;
goto out;
}
}
if (filename[0] == '\0') {
}
if (filename[0] == '\0') {
- fprintf(stderr, "An image file MUST be specified.\n");
+ fprintf(stderr, "An image file MUST be specified with the -f option.\n\n");
+ usage(argv[0]);
exit_code = EXIT_FAILURE;
goto out;
}
exit_code = EXIT_FAILURE;
goto out;
}