Get default value of boolean from get()

This commit is contained in:
Naiyang Lin 2019-08-20 10:28:47 +08:00 committed by GitHub
parent cb60381e84
commit 2c64760d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -949,7 +949,7 @@ namespace cxxopts
set_default_and_implicit()
{
m_default = true;
m_default_value = "false";
m_default_value = get() ? "true" : "false";
m_implicit = true;
m_implicit_value = "true";
}