You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
636 B
30 lines
636 B
/*****************************************************************************
|
|
*
|
|
* demo program - part of CLIPP (command line interfaces for modern C++)
|
|
*
|
|
* released under MIT license
|
|
*
|
|
* (c) 2017-2018 André Müller; foss@andremueller-online.de
|
|
*
|
|
*****************************************************************************/
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
#include <clipp.h>
|
|
|
|
|
|
int main()
|
|
{
|
|
using namespace clipp;
|
|
using std::cout;
|
|
|
|
|
|
auto cli = group(
|
|
option("-a"),
|
|
option("-ab")
|
|
);
|
|
|
|
cout << "flags are " << (cli.flags_are_prefix_free() ? "" : "not ")
|
|
<< "prefix free\n";
|
|
}
|