kotlinx-cli icon indicating copy to clipboard operation
kotlinx-cli copied to clipboard

Pure Kotlin implementation of a generic CLI parser.

Results 35 kotlinx-cli issues
Sort by recently updated
recently updated
newest added

It would be nice to have an option to show the help of the subcommand if no options and no subcommands are specified.

Been using this great library for a few projects already. Before I start doing something, that someone already did: Since the DSL in the library is very good, it should...

Currently, only one subcommand can understand -h option, all nested subcommand shows same help as help of first subcommand, i.e. output of ``` main subcommand -h ``` and ``` main...

Please add support for linux arm32 and arm64, that would be really helpful for natives deployed on Raspberry PI

Right now the parser supports either `--foo arg` style as `OptionPrefixStyle.LINUX` or `--foo=arg` style as `OptionPrefixStyle.GNU`, but not both at the same time (as `getopt` or rust CLI libraries usually...

Hi, when i try to build mingwX86 version it fails with ``` > Could not resolve all files for configuration ':mingwX86CompileKlibraries'. ... > No matching variant of org.jetbrains.kotlinx:kotlinx-cli:0.3.5 was found....

This library shouldn't tightly couple argument parsing and command execution. This is a mistake every cli library seems to make, at the expense of making the library generally useful. Parsing...

I would need something like: `./myapp --add --first-name John --last-name Smith --add --first-name Jane --last-name Doe` So `add` is a repeating sub command. It looks like it's not possible right...

Processing options with sub-commands looks curiously. `ArgParser.parse` method without sub-commands just parses options. But sub-commands require different code organization. I would suggest something that looks like: ```kotlin class Opts :...