Hacker GitHub

← All repos

jessevdk/go-flags

View on GitHub ↗ ★ 2,694 Go

go command line option parser

10 mentions on Hacker News by 8 people: 2 stories, 8 comments · first 2012-09-03 · latest 2025-03-23

Mentions per year 10 mentions · busiest year 2019 (2)
20082026
  1. I've become a fan of https://github.com/jessevdk/go-flags (also enjoyed structopt which is similar for Rust). I much prefer defining the flags statically on a type which stores them after rather than building it all up programmatically.…
    comment by CamouflagedKiwi · 2025-03-23 · in argp: GNU-style command line argument parser for Go
  2. I liked go-flags https://github.com/jessevdk/go-flags
  3. …the struct it gets bound to - much prefer the approach of generating the help text from a struct. https://github.com/jessevdk/go-flags is my favourite option; it's lightweight but amazingly featureful, and I much prefer the declarative…
  4. For my purpose, go-flags was a great fit. https://github.com/jessevdk/go-flags
  5. I like https://godoc.org/github.com/jessevdk/go-flags , since it also supports environment variables. It's nice to be able to get configurable defaults from the environment and still be able to override them on the command line.
    comment by incompatible · 2017-12-05 · in Why I love Go
  6. …See the `flag` package, which is something that new users are encouraged to avoid in favor of e.g. https://github.com/jessevdk/go-flags .
    comment by kibwen · 2016-07-28 · in The Rust Platform
  7. …third party packages, but having a proper one in the standard library would've been better. [1] https://github.com/jessevdk/go-flags
  8. You don't have to use flag package from the stdlib, there a are plenty of others, eg: https://github.com/jessevdk/go-flags