made krontab in settings optional

This commit is contained in:
2022-09-09 16:28:14 +06:00
parent 732d2a182f
commit 42567b72f4
3 changed files with 7 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ class EnableArgsParser: CliktCommand(name = "enable") {
val query by argument().multiple(required = true).help("Your query to booru. Use syntax \"-- -sometag\" to add excluding of some tag in query")
val krontab by option("-k", "--krontab").transformValues(5) {
it.joinToString(" ")
}.required().help("Krontab in format * * * * *. See https://bookstack.inmo.dev/books/krontab/page/string-format")
}.help("Krontab in format * * * * *. See https://bookstack.inmo.dev/books/krontab/page/string-format")
val board by option("-b", "--board").convert {
ChatSettings.BoardSerializer.types.getValue(it)
}.required().help("Board type. Possible values: ${ChatSettings.BoardSerializer.types.keys.joinToString { it }}")