xenomachina / kotlin-argparser

Easy to use and concise yet powerful and robust command line argument parsing for Kotlin
GNU Lesser General Public License v2.1
485 stars 33 forks source link

Support options of the form "-<number>" (hyphen immediately followed by a number) #76

Open amynbe opened 4 years ago

amynbe commented 4 years ago

Like the max-count option in git log:

-<number>
-n <number>
--max-count=<number>

Or the -n option in gnu head/tail

Also it would be nice if the library had appropriate visibility of utility methods so a user can implement such behaviour himself (I don't think that's the case currently, e.g internal object PosixNaming).