count arguments
This commit is contained in:
parent
3ce8cbd1ae
commit
81f1f440ed
@ -71,7 +71,8 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
if (apple)
|
if (apple)
|
||||||
{
|
{
|
||||||
std::cout << "Saw option ‘a’" << std::endl;
|
std::cout << "Saw option ‘a’ " << options.count("a") << " times " <<
|
||||||
|
std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.count("b"))
|
if (options.count("b"))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user