mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-03-14 03:13:28 +01:00
Prevent unmatched parameters when setting locale
This commit is contained in:
parent
594b9029b2
commit
4eb6d1fdcb
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue