alecthomas/kong
View on GitHub ↗ ★ 3,197 Go
Kong is a command-line parser for Go
8 mentions on Hacker News by 8 people: 1 story, 7 comments · first 2020-08-04 · latest 2025-06-19
20082026
-
…as the parent project though but I prefer kong in terms of the actual code you need to write. [1] https://github.com/alecthomas/kong
comment by syvolt · 2025-06-19 · in Fang, the CLI Starter Kit -
…extensibility in order to handle every imaginable use-case. 1: https://docs.rs/clap/latest/clap/ 2: https://github.com/alecthomas/kong?tab=readme-ov-file#introd...
comment by 0points · 2025-05-16 · in Rethinking How I Deal With CLI Arguments (replacing getopt) -
Yes, see https://github.com/alecthomas/kong/issues/315 . It may be nontrivial to change.
comment by networked · 2025-03-23 · in argp: GNU-style command line argument parser for Go -
…a very poor experience, both as a developer and as a user. I've had a much better experience with https://github.com/alecthomas/kong , and I've heard good things about https://github.com/urfave/cli , so I would recommend those over Cobra.
comment by imiric · 2025-03-23 · in argp: GNU-style command line argument parser for Go -
I use Kong https://github.com/alecthomas/kong I does everything, including too complicated options.
comment by edoceo · 2025-03-23 · in argp: GNU-style command line argument parser for Go -
…not being in the index, I shall ensure I add it just for you based on this. Done. That repository https://github.com/alecthomas/kong will get picked up when I kick off the indexing again (sometime next week once all the activity dies down)
comment by boyter · 2022-11-23 · in Building a custom code search index in Go -
Yes, though unlike Rust they use reflection: https://github.com/alecthomas/kong (my own)
comment by alecthomas · 2020-08-04 · in Go vs. Rust: Writing a CLI Tool