Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For gnu style long options you want: https://github.com/spf13/pflag

It is a drop in replacement for the built in flag library.

I ususally start out with the built in flag library and migrate to pflag when things get a bit more complicated.



Thanks, not sure why I missed this. Probably should have used this instead of settling on urfave/cli. I take back some of what I said.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: