News for hackers. Stuff that matters.
Re:Show HN: Add a command-line interface to any C++ program by jcul on Saturday October 16, 2021 @07:39AM (#28887155)
I haven't used Genopt, it looks cool. At first I thought you meant getopt, which it looks like Genopt is built on.

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.

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"