mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2026-10-01 16:02:49 +00:00
Settings: Is CLI is set, use it instead of INI.
This commit is contained in:
1 parent
38fce0ee5c
commit
ff9163c1bb
1 file changed
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user