--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Friends,I am a newbie to GO and it is going to be my go to language.I would like to know if there is a better package than inbuilt flag package http://golang.org/pkg/flag/I see people using several modified packages, please let me know which has the most number of features ?There is one package Docker is using, looks like it has more features.Do I need to go ahead and use the inbuilt one or any better package existing ?
I am so used to python argparse and would like to start using something like that in GO.Please direct me in the right direction.Darup
--
On Apr 24, 2014 2:46 AM, "Jesse van den Kieboom" <jess...@gmail.com> wrote:
>
> You can, although you need to do a bit of work. See http://play.golang.org/p/MJi0itaz00 for an example. I'm not against adding some convenience API for this use case in go-flags, as long as it doesn't clutter the API, but I've not needed it myself yet.
>
>
Ah awesome. So it is possible. I actually needed it right away since I was porting an existing tool from another language to Go. And it had a very descriptive description for certain flags. Would be really great if it were directly supported in the library to make it easy. I don't think it is all that uncommon to have much longer descriptions for certain flags.
On Apr 25, 2014 2:55 AM, "C Banning" <clba...@gmail.com> wrote:
>
> Why not something like this: http://play.golang.org/p/23PedCe95r?
>
>
Thanks but I was specifically asking about doing long descriptions using go-flags and not the stdlib flags.