cxxopts icon indicating copy to clipboard operation
cxxopts copied to clipboard

There is a exception when an option is end with return key.

Open naiixeel opened this issue 5 years ago • 2 comments

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.

naiixeel avatar Oct 12 '19 07:10 naiixeel

Which shell are you using? I can't reproduce this with bash.

jarro2783 avatar Oct 14 '19 07:10 jarro2783

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.

naiixeel avatar Oct 21 '19 14:10 naiixeel