From 62f18291533a57a7951f693969acff782c16bde1 Mon Sep 17 00:00:00 2001
From: Andreas Romeyke <andreas.romeyke@slub-dresden.de>
Date: Mon, 20 Feb 2023 16:41:26 +0100
Subject: [PATCH] - bugfix, App::Cmd checks existence of required, not the
 value.   Therefore 'required=>0' does not work as expected

---
 lib/SLUB/LZA/Rosetta/TA/Command/init.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/SLUB/LZA/Rosetta/TA/Command/init.pm b/lib/SLUB/LZA/Rosetta/TA/Command/init.pm
index 774bec8..867f011 100644
--- a/lib/SLUB/LZA/Rosetta/TA/Command/init.pm
+++ b/lib/SLUB/LZA/Rosetta/TA/Command/init.pm
@@ -22,8 +22,8 @@ sub opt_spec {
         ["verbose|v" => "enable verbose output"],
         ["rosettahost|r=s" => "host adress where Rosetta runs", {required=>1}],
         ["logdir|l=s" => "logdir where rosetta stores it server log files", {required=>1}],
-        ["authentication|a" => "enable authentification (needed if Rosetta's general parameter 'sru_authentication=true'), password is stored salted only in config file!", {required=>0}],
-        ["httponly" => "with this flag only HTTP (instead HTTPS) is used", {required=>0}],
+        ["authentication|a" => "enable authentification (needed if Rosetta's general parameter 'sru_authentication=true'), password is stored salted only in config file!"],
+        ["httponly" => "with this flag only HTTP (instead HTTPS) is used"],
     );
 }
 sub validate_args {
-- 
GitLab