3 ms·
What about gnu Genopt? I have really enjoyed using it, although it's perhaps pure C rather than C++.
by azalemeth 5y ago
What about gnu Genopt? I have really enjoyed using it, although it's perhaps pure C rather than C++.
- jcul 5y agoI 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.
- ryandrake 5y agoYea, 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"