mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-08 01:39:43 +02: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
|
@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…
Add table
Add a link
Reference in a new issue