Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hnarn
on July 7, 2020
|
parent
|
context
|
favorite
| on:
Help Message for Shell Scripts
I also really like the "flag" package for Go, it generates the help text for you and easily lets you set defaults as well as helps you type-check inputs.
PenguinCoder
on July 7, 2020
[–]
I like
https://github.com/jpillora/opts
for Go arg parsing. It has better, sane defaults with long/short opts.
hnarn
on July 8, 2020
|
parent
[–]
Cool, I'll check it out. There's something attractive about using stuff from the standard library though.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: