Commit 07e37a1
committed
compatible with cxxopt.
in https://github.com/jarro2783/cxxopts/blob/v3.2.1/include/cxxopts.hpp#L1011-L1018
it checks the (!in), if we read after reaching EOF, the !in will be true
which results a incorrect_argument_type exception thrown.
we should be very careful to avoid read after reaching eof.
Signed-off-by: Xiaoxi Chen <[email protected]>1 parent 7dda682 commit 07e37a1
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
0 commit comments