Re:Show HN: Add a command-line interface to any C++ program
by ryandrake on Saturday October 16, 2021 @01:05PM
(#28889324)
Yea, I was a little confused by the "command line" claim, too. Like, where is it parsing argv and argc, and does it support long style and short style options? Title should say "Add a REPL interface to any C++ program"
However I think Genopt is concerned with command line arguments.
This is about an interactive command line interface, like a REPL. So you type command and it calls functions interactivly.
This kind of thing can be a lot of work to do right, so I think this header looks great. I'm looking forward to trying it out.