fix changelog and readme
add booleans into the changelog and the readme
This commit is contained in:
parent
6c9bae4a07
commit
70b9230639
@ -19,6 +19,7 @@ options. The project adheres to semantic versioning.
|
|||||||
* The function `ParseResult::arguments` returns a vector of the parsed
|
* The function `ParseResult::arguments` returns a vector of the parsed
|
||||||
arguments to iterate through in the order they were provided.
|
arguments to iterate through in the order they were provided.
|
||||||
* The symbol `cxxopts::version` for the version of the library.
|
* The symbol `cxxopts::version` for the version of the library.
|
||||||
|
* Booleans can be specified with various strings and explicitly set false.
|
||||||
|
|
||||||
## 1.x
|
## 1.x
|
||||||
|
|
||||||
|
|||||||
@ -88,6 +88,13 @@ Note that the default and implicit value is always stored as a string,
|
|||||||
regardless of the type that you want to store it in. It will be parsed as
|
regardless of the type that you want to store it in. It will be parsed as
|
||||||
though it was given on the command line.
|
though it was given on the command line.
|
||||||
|
|
||||||
|
## Boolean values
|
||||||
|
|
||||||
|
Boolean options have a default implicit value of `"true"`, which can be
|
||||||
|
overridden. The effect is that writing `-o` by itself will set option `o` to
|
||||||
|
`true`. However, they can also be written with various strings using either
|
||||||
|
`=value` or the next argument.
|
||||||
|
|
||||||
# Linking
|
# Linking
|
||||||
|
|
||||||
This is a header only library.
|
This is a header only library.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user