mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 08:46:15 +00:00
Settings: Is CLI is set, use it instead of INI.
This commit is contained in:
parent
38fce0ee5c
commit
ff9163c1bb
@ -92,12 +92,12 @@ class Setting(val ini: Map<String, List<String>>, val cli: CommandLineOptions, v
|
||||
val logger = LoggerFactory.getLogger(Setting::class.java)
|
||||
|
||||
init {
|
||||
if (getIni(name) != null) {
|
||||
values = getIni(name)!!
|
||||
source = SettingSource.INI
|
||||
} else if (getCli(name) != null) {
|
||||
if (getCli(name) != null) {
|
||||
values = listOf(getCli(name)!!)
|
||||
source = SettingSource.CLI
|
||||
} else if (getIni(name) != null) {
|
||||
values = getIni(name)!!
|
||||
source = SettingSource.INI
|
||||
} else {
|
||||
values = default
|
||||
source = SettingSource.DEFAULT
|
||||
|
Loading…
Reference in New Issue
Block a user