p-ranav/structopt
View on GitHub ↗ ★ 511 C++
Parse command line arguments by defining a struct
4 mentions on Hacker News by 4 people: 1 story, 3 comments · first 2020-08-17 · latest 2020-08-17
20082026
-
It's this: https://github.com/p-ranav/structopt/blob/master/include/str... mashed into a single header with some other stuff by a build tool, I think. That looks like something that was proposed for inclusion in boost a long time ago. I…
comment by hoistbypetard · 2020-08-17 · in Show HN: Structopt for C++ – Parse command line arguments by defining a struct -
…generated code looks strange: static VISIT_STRUCT_CONSTEXPR const int max_visitable_members = 69; https://github.com/p-ranav/structopt/blob/master/single_incl...
comment by ho_schi · 2020-08-17 · in Show HN: Structopt for C++ – Parse command line arguments by defining a struct -
…own project (which seems to be generated (aka "amalgamated") from multiple smaller header files): https://github.com/p-ranav/structopt/tree/master/single_incl... So for typical C++ libraries, this seems quite straightforward to integrate.…
comment by flohofwoe · 2020-08-17 · in Show HN: Structopt for C++ – Parse command line arguments by defining a struct