mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-12-25 22:35:35 +00:00
CommandLineOptions will now insert booleans into values with an value of "true" as well.
This commit is contained in:
parent
ec4097e777
commit
e5da546386
@ -25,6 +25,7 @@ class CommandLineOptions(args: Array<String>) {
|
||||
if (arg.startsWith("--")) {
|
||||
if (last_key!=null) {
|
||||
booleans.add(last_key!!)
|
||||
values.put(last_key!!, "true")
|
||||
}
|
||||
last_key = arg.substring(2)
|
||||
} else {
|
||||
@ -35,6 +36,9 @@ class CommandLineOptions(args: Array<String>) {
|
||||
last_key = null
|
||||
}
|
||||
}
|
||||
if (last_key!=null) booleans.add(last_key!!)
|
||||
if (last_key!=null) {
|
||||
booleans.add(last_key!!)
|
||||
values.put(last_key!!, "true")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user