From: Teemu Hukkanen <tjhukkan@iki.fi>
Date: Sat, 16 Mar 2024 16:04:36 +0200
Subject: --debug is required when DEBUG_MODE is defined

Origin: upstream
Forwarded: not-needed
---
 AUTHORS   | 1 +
 ChangeLog | 6 ++++++
 hts.c     | 2 +-
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/AUTHORS b/AUTHORS
index f6ecaf3..10d2007 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -21,6 +21,7 @@ Patches:		Tomas Berndtsson <tomas@nocrew.org> (Solaris)
 			Fumitoshi UKAI <ukai@debian.or.jp>
 			Brian Somers <brian@Awfulhak.org>
 			Sampo Niskanen <sampo.niskanen@iki.fi>
+			Tim Phipps <Tim.Phipps@st.com>
 Testing:		Philip Craig <philip@pobox.com>
 FAQ:			Lars Brinkhoff <lars@nocrew.org>
 			Christian Brideau <cbrideau@newbridge.com>
diff --git a/ChangeLog b/ChangeLog
index a04f77e..1ac74c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-03-30  lars brinkhoff  <lars@nocrew.org>
+
+	From Tim Phipps <Tim.Phipps@st.com>:
+	* hts.c (parse_arguments): --debug argument is required, not
+	optional.
+
 2001-02-25  lars brinkhoff  <lars@nocrew.org>
 
 	From Sampo Niskanen <sampo.niskanen@iki.fi>:
diff --git a/hts.c b/hts.c
index 1dcd021..e21e136 100644
--- a/hts.c
+++ b/hts.c
@@ -105,7 +105,7 @@ parse_arguments (int argc, char **argv, Arguments *arg)
 	{ "version", no_argument, 0, 'V' },
 	{ "no-daemon", no_argument, 0, 'w' },
 #ifdef DEBUG_MODE
-	{ "debug", optional_argument, 0, 'D' },
+	{ "debug", required_argument, 0, 'D' },
 	{ "logfile", required_argument, 0, 'l' },
 #endif
 	{ "device", required_argument, 0, 'd' },
