You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, argparse can be compiled with the support for error messages, which can be obtained via `arg_geterror ()`. If argparse was compiled without the support for error messages, NULL will be returned instead. Added CMake option to compile example.c via `-DARGPARSE_EXAMPLES` option.
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,3 +91,6 @@ To build and install argparse on \*Unix systems, in your shell type
91
91
mkdir build && cd build\
92
92
cmake .. && make && sudo make install
93
93
```
94
+
95
+
To build examples to `cmake` command add `-DARGPARSE_EXAMPLES=1`; to include error messages via `arg_geterror ()` to `cmake` command add `-DARGPARSE_ERRORS=1`
96
+
Note, that if the library is compiled without error messages, a call to `arg_geterror ()` will always return NULL.
0 commit comments