mirror of
https://github.com/InsanusMokrassar/BooruGrabberTelegramBot.git
synced 2025-11-11 09:30:12 +00:00
improvements
This commit is contained in:
@@ -31,14 +31,8 @@ class EnableArgsParser(
|
||||
.transformValues(5) { it.joinToString(" ") }
|
||||
.help("Krontab in format * * * * *. See https://bookstack.inmo.dev/books/krontab/page/string-format")
|
||||
val board by option("-b", "--board")
|
||||
.default("safebooru")
|
||||
.convert { ChatSettings.BoardSerializer.types.getValue(it) }
|
||||
.run {
|
||||
if (onlyQueryIsRequired) {
|
||||
this
|
||||
} else {
|
||||
required()
|
||||
}
|
||||
}
|
||||
.help("Board type. Possible values: ${ChatSettings.BoardSerializer.types.keys.joinToString { it }}")
|
||||
val gallery by option("-g", "--gallery")
|
||||
.flag(default = base.gallery)
|
||||
|
||||
Reference in New Issue
Block a user