bump version to 1.3.1
All checks were successful
/ publish (push) Successful in 3m50s

update README to match changes
This commit is contained in:
2025-12-28 00:33:49 +01:00
parent f1185886d4
commit 5d363e0f43
2 changed files with 5 additions and 9 deletions

View File

@@ -21,29 +21,25 @@ repositories {
}
dependencies {
implementation("com.infendro:cli:1.3.0")
implementation("com.infendro:cli:1.3.1")
}
```
## Usage
```kotlin
import com.infendro.cli.argument.stringOrElse
import com.infendro.cli.argument.stringOrNull
import com.infendro.cli.command.cli
fun main(args: Array<String>) {
// declare root command
cli {
execute {
// execution of root command (e.g., display help)
// execution of root command (e.g., display help)
}
// declare command "test"
command("test") {
// declare arguments
val greetingArg = stringOrElse("greeting", "Hello")
val nameArg = stringOrNull("name")
val greetingArg = stringOrElse("greeting", "greet", "g", other = "Hello")
val nameArg = stringOrNull("name", "n")
execute {
// retrieve the arguments

View File

@@ -2,7 +2,7 @@ import com.infendro.plugin.infendro
import com.infendro.plugin.token
group = "com.infendro"
version = "1.3.0"
version = "1.3.1"
plugins {
alias(libs.plugins.infendro)