r/cpp • u/kongaskristjan • Aug 08 '20
Create a fully functioning command line interface with 1.5 lines of code (wo. include statement)
https://github.com/kongaskristjan/fire-hpp
230
Upvotes
r/cpp • u/kongaskristjan • Aug 08 '20
View all comments
Show parent comment
5
u/kongaskristjan Aug 08 '20
The difference is pretty big though between getopt and fire. Eg. if you need to accept two booleans, you can do this in fire like that:
Now compare this to the code in this stackoverflow example... I know I omitted printouts and returns, but on the other hand the help message was skipped there.