Prevent unmatched parameters when setting locale

This commit is contained in:
Paul Schaub 2024-12-12 20:39:54 +01:00
parent a33739b772
commit 0ed3b96d53
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -74,7 +74,9 @@ class SopCLI {
@JvmStatic
fun execute(vararg args: String): Int {
// Set locale
CommandLine(InitLocale()).parseArgs(*args)
CommandLine(InitLocale())
.setUnmatchedArgumentsAllowed(true)
.parseArgs(*args)
// Re-set bundle with updated locale
cliMsg = ResourceBundle.getBundle("msg_sop")