diff --git a/src/sg_raw.c b/src/sg_raw.c index 90c3d9c..64b8574 100644 --- a/src/sg_raw.c +++ b/src/sg_raw.c @@ -438,6 +438,13 @@ parse_cmd_line(struct opts_t * op, int argc, char *argv[]) } } + if (op->version_given +#ifdef DEBUG + && ! op->verbose_given +#endif + ) + return 0; + if (optind >= argc) { pr2serr("No device specified\n\n"); return SG_LIB_SYNTAX_ERROR;