jarro2783 / cxxopts

Lightweight C++ command line option parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-option Error message. I think we should not just report command ‘p’ error.

seulchanson opened this issue · comments

boost is more reasonable.
image

The behaviour is due to ability to pass joined flags. That is, -ap is equivalent to -a -p. And since you defined the -a option, it is accepted and the next one (-p) is unrecognised.

Yes, in this case only the option p is the unrecognised one.

If we have an option --parallel [int] -p [std::string].
The input is -parallel, we can't get correct tips for parallel.
How to close command link for '-'.

I don't understand the question. Can you explain a bit more what the problem is?