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
20082026
-
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
Show HN: New set of Go libraries for CLI Developmentstory by Dependent_Law_ · 2023-01-12 · 0 comments
-
I liked go-flags https://github.com/jessevdk/go-flags
comment by mongol · 2020-05-27 · in Diving into Go by building a CLI application -
…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…
comment by CamouflagedKiwi · 2019-03-20 · in Docli – A declarative language for command-line interfaces in Go -
For my purpose, go-flags was a great fit. https://github.com/jessevdk/go-flags
comment by mongol · 2019-03-20 · in Docli – A declarative language for command-line interfaces in Go -
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 -
…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 -
…third party packages, but having a proper one in the standard library would've been better. [1] https://github.com/jessevdk/go-flags
comment by martinp · 2015-03-15 · in The importance of user interface, illustrated by the Go flag package -
You don't have to use flag package from the stdlib, there a are plenty of others, eg: https://github.com/jessevdk/go-flags
comment by ushi · 2013-11-22 · in Red October: Go server for "two man rule" file encryption by Cloudflare -
▲ 1
Go-flags: the easiest command line parser for gostory by jessevdk · 2012-09-03 · 0 comments