diff options
Diffstat (limited to 'src/sg_compare_and_write.c')
-rw-r--r-- | src/sg_compare_and_write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sg_compare_and_write.c b/src/sg_compare_and_write.c index 11f5e859..23d69b3a 100644 --- a/src/sg_compare_and_write.c +++ b/src/sg_compare_and_write.c @@ -56,7 +56,7 @@ #include "sg_unaligned.h" #include "sg_pr2serr.h" -static const char * version_str = "1.28 20200429"; +static const char * version_str = "1.29 20200509"; #define DEF_BLOCK_SIZE 512 #define DEF_NUM_BLOCKS (1) @@ -292,6 +292,8 @@ parse_args(int argc, char* argv[], struct opts_t * op) goto out_err; } } + if (op->version_given && (! op->verbose_given)) + return 0; if (NULL == op->device_name) { pr2serr("missing device name!\n"); goto out_err; |