Yet another args parser library (with lots of fantasy, "flags")

35 views
Skip to first unread message

furlan....@gmail.com

unread,
Jun 8, 2020, 12:59:58 PM6/8/20
to golang-nuts
Hello people,

since now I've used the standard "flags" library for parsing the arguments. What I really miss in it are two things though:

- long and short syntaxes (only "long" one is supported)
- help printer (which can be done externally in any case)

I'm now developing another software and I really missed these two things, so I decided to create such library.

I know there are other alternatives, but I thought I'd make my one, trying to mimic UNIX commands the most.

This is why I just released my own args parsing and helper printing library. Feel free to tell me what you think about it, please :)

In particular my library distinguishes the arguments in:

- options (and option values)
- commands

Also commands can accept sub-commands and command-specific options. Short syntax options also allow option concatenation (like -xyz).

The help function is triggered optionally including the HelpOption provided with the package (see instructions in any case!) and will print a unix-style CLI help message.

Thank you very much.

Giacomo

Reply all
Reply to author
Forward
0 new messages