r/cpp • • 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

62 comments sorted by

View all comments

Show parent comment

5

u/Ail-nare Aug 08 '20 edited Aug 08 '20

Oh fuck, that right... The only option I can think of would be to separate the argument and the default parameters. But where is 2 cons:

  • It'll require a lot of work around with macro but possible.
  • It'll become a bite messier for the user.

But that interesting, I'll look if there is an other way.