kotlin-argparser
kotlin-argparser copied to clipboard
Easy to use and concise yet powerful and robust command line argument parsing for Kotlin
When using a missing argument multiple times, the lambda that provides a default value was called at every use of the delegate. In some cases, like asking the user to...
I'd expect the following bits to be legit but for some reason they are not: ```kotlin class MyArgs(parser: ArgParser) { val imageDirectory by parser.positional("directory", "The directory which should be scanned...
I have lately been exploring kotlin for scripting purposes, using https://github.com/holgerbrandl/kscript. Kotlin-argparsers really shines in scripts because it's concise and still provides nice error messages. On of the differences between...
I guess there is no real consistent scheme, but quite a few tools capitalize the help section headers. So maybe a flag could be added to do the same when...
I am not sure if this makes sense for this library. So just wanted to get your opinion on providing an option to generate Bash/Zsh completion scripts for the arguments...
Currently I try to use kotlin-argparser in one of my projects. Unfortunately even a simple example throws an error. `class MyArgs(parser: ArgParser) { val test by parser.flagging("-t", "--test", help =...
Hierarchical arguments would make it possible to plug together different modules on the command-line. Usage might look something like: ``` kotlin // Arguments for some module, defined just like program...
It'd be nice to have a column in the help output listing the default values
Add helpfull description for help message showing
Hi! I want to parse my args lazily so when i access arg via delegate, parser should parse only this one exact arg. Currently parser run force() method on first...