kotlin-argparser icon indicating copy to clipboard operation
kotlin-argparser copied to clipboard

Easy to use and concise yet powerful and robust command line argument parsing for Kotlin

Results 33 kotlin-argparser issues
Sort by recently updated
recently updated
newest added

I propose to add the following overloads to the ArgParser@option function, so that we can specify a list of valid values, and if the user specifies anything else, it'll throw....

There is no activity in this repo for over a year. Is someone actually maintaining this?

JFrog announced that they'll be shutting down JCenter: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/ Key dates: - March 31st 2021: No more submissions will be accepted to Bintray, JCenter - February 1st 2022: Bintray, JCenter...

Like the max-count option in [git log](https://www.git-scm.com/docs/git-log#Documentation/git-log.txt--ltnumbergt): ``` - -n --max-count= ``` Or the `-n` option in gnu [head](https://linux.die.net/man/1/head)/tail Also it would be nice if the library had appropriate visibility...

I've added a `--version` option in the same manner as the `--help` option. The version can be provided in the ArgParser constructor if needed. If it is not provided, no...

We have a case where we have some really long parameter names, which in the default formatting wraps all the descriptions into a single column. We work around this by...

When using the `mainBody`, the system performs a `exitProcess` when e.h. `--help` is used. This brings down my whole unit test VM, so it would be nice to have the...

``` Kotlin version 1.2.60-release-76 (JRE 10.0.2+13) com.xenomachina:kotlin-argparser:2.0.7 ``` I (unfortunately) write Python almost every day at work, and we use Argparse there most of the time. Argparse has wonderful support...

If you have: val configFile by parser.storing("--config", "-c", argName = "CONFIGFILE", help = "Configuration file") { asPath } val version by parser.flagging("--version", help = "print version and exit") You cannot...

enhancement

`val url1 by parser.storing(help = "jdbc url. Example: jdbc:postgresql://localhost:5432/db1")` results in: `Exception in thread "main" java.lang.IllegalArgumentException: URL1 is not a valid argument name` Not sure if this is by design...