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