mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-22 12:57:57 +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
|
@JvmStatic
|
||||||
fun execute(vararg args: String): Int {
|
fun execute(vararg args: String): Int {
|
||||||
// Set locale
|
// Set locale
|
||||||
CommandLine(InitLocale()).parseArgs(*args)
|
CommandLine(InitLocale())
|
||||||
|
.setUnmatchedArgumentsAllowed(true)
|
||||||
|
.parseArgs(*args)
|
||||||
|
|
||||||
// Re-set bundle with updated locale
|
// Re-set bundle with updated locale
|
||||||
cliMsg = ResourceBundle.getBundle("msg_sop")
|
cliMsg = ResourceBundle.getBundle("msg_sop")
|
||||||
|
|
Loading…
Reference in a new issue