cxxopts
cxxopts copied to clipboard
There is a exception when an option is end with return key.
This problem only exists when you write your commands in shell script.
Example: program -a program -a
The first command will throw an option_syntax_exception because the command in shell script is end with return key. If the second command isn't follow with return key, it can be executed normally.
Which shell are you using? I can't reproduce this with bash.
I'm sorry for the late reply. I had test my code with shell script in Jetson TX2, which throw a exception. But when I run it in windows subsystem, it can run normally. It's weird.