We don't want to see an error message if the '--help' option was
utilized. Parsing errors are also already printed, so don't need the
second error message anyway.
Signed-off-by: Keith Busch <keith.busch@intel.com>
};
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
- if (fd < 0) {
- fprintf(stderr, "parse and open failed\n");
+ if (fd < 0)
return fd;
- }
if (!cfg.file_name) {
fprintf(stderr, "Please provide an output file!\n");