c61c24
From 116e665ddb7b38bb8f7065ddb08192bd3551897d Mon Sep 17 00:00:00 2001
c61c24
From: Tomas Bzatek <tbzatek@redhat.com>
c61c24
Date: Tue, 26 Feb 2019 16:45:59 +0100
c61c24
Subject: [PATCH] sg_turs: fix help invocation in the old mode
c61c24
c61c24
In the old mode the usage was printed out twice when called
c61c24
by `sg_turs -O -?`.
c61c24
---
c61c24
 src/sg_turs.c | 2 +-
c61c24
 1 file changed, 1 insertion(+), 1 deletion(-)
c61c24
c61c24
diff --git a/src/sg_turs.c b/src/sg_turs.c
c61c24
index 8c6e3792..a318d22c 100644
c61c24
--- a/src/sg_turs.c
c61c24
+++ b/src/sg_turs.c
c61c24
@@ -252,7 +252,7 @@ old_parse_cmd_line(struct opts_t * op, int argc, char * argv[])
c61c24
                     op->version_given = true;
c61c24
                     break;
c61c24
                 case '?':
c61c24
-                    usage_old();
c61c24
+                    ++op->do_help;
c61c24
                     return 0;
c61c24
                 default:
c61c24
                     jmp_out = true;