mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-25 10:06:14 +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 (arg.startsWith("--")) {
|
||||||
if (last_key!=null) {
|
if (last_key!=null) {
|
||||||
booleans.add(last_key!!)
|
booleans.add(last_key!!)
|
||||||
|
values.put(last_key!!, "true")
|
||||||
}
|
}
|
||||||
last_key = arg.substring(2)
|
last_key = arg.substring(2)
|
||||||
} else {
|
} else {
|
||||||
@ -35,6 +36,9 @@ class CommandLineOptions(args: Array<String>) {
|
|||||||
last_key = null
|
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