mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-21 20:47:58 +01:00
Prevent unmatched parameters when setting locale
This commit is contained in:
parent
a33739b772
commit
0ed3b96d53
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…
Reference in a new issue