We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87618de commit e6a5fafCopy full SHA for e6a5faf
example/main.cpp
@@ -4,14 +4,14 @@ int main(int argc, char **argv)
4
{
5
cppcommandline::Parser commandLine;
6
7
- int someoption = 0;
8
std::string filename;
+ int someoption = 0;
9
bool flag = false;
10
11
commandLine.option().withDescription("A required filename").required().bindTo(filename);
12
commandLine.option("someoption").asShortName("s").withDefaultValue(10).withDescription("My description of someoption").bindTo(someoption);
13
commandLine.option("flag").withDefaultValue(false).withDescription("My flag").bindTo(flag);
14
-
15
commandLine.parse(argc, argv);
+
16
return 0;
17
}
0 commit comments