Registry / cli / clikt
library2.8.0javamavenunverified

Multiplatform command line interface parsing for Kotlin.

<dependency> <groupId>com.github.ajalt</groupId> <artifactId>clikt</artifactId> <version>2.8.0</version> </dependency>
INSTALL
IMPORT
SIG · CLIKT
C
clikt
clijavav2.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CliktCommand
com.github.ajalt.clikt.core.CliktCommand

Defines a simple CLI command that greets a user.

import com.github.ajalt.clikt.core.CliktCommand import com.github.ajalt.clikt.parameters.arguments.argument class HelloCommand : CliktCommand() { val name by argument() override fun run() { echo("Hello, $name!") } } fun main(args: Array<String>) = HelloCommand().main(args)
Debug
Known issues
breakingClikt 2.x uses Kotlin coroutines for some features; ensure your project targets Kotlin 1.3+.
fix
Update Kotlin version to 1.3 or later and add kotlinx-coroutines dependency if needed.
affects: >=2.0.0
Upgrade
Version history
2.8.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
24
Resources
clikt — mvn dependency:get clikt · libregistry