From 5bd28f494ece506daa58861bf46e726c3958021e Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Mon, 5 Dec 2022 12:36:42 +0100
Subject: [PATCH] ldattach: fix --intro-command and --pause

The long version of the command line options should not ignore arguments.

Fixes: https://github.com/util-linux/util-linux/issues/1940
Signed-off-by: Karel Zak <kzak@redhat.com>
---
 sys-utils/ldattach.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c
index 3c853f829..0a6b6f2d2 100644
--- a/sys-utils/ldattach.c
+++ b/sys-utils/ldattach.c
@@ -303,8 +303,8 @@ int main(int argc, char **argv)
 		{"help", no_argument, NULL, 'h'},
 		{"version", no_argument, NULL, 'V'},
 		{"debug", no_argument, NULL, 'd'},
-	        {"intro-command", no_argument, NULL, 'c'},
-	        {"pause", no_argument, NULL, 'p'},
+	        {"intro-command", required_argument, NULL, 'c'},
+	        {"pause", required_argument, NULL, 'p'},
 		{NULL, 0, NULL, 0}
 	};
 
-- 
2.27.0

