Skip to content

Commit e6a5faf

Browse files
committed
Adjusted the example file.
1 parent 87618de commit e6a5faf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ int main(int argc, char **argv)
44
{
55
cppcommandline::Parser commandLine;
66

7-
int someoption = 0;
87
std::string filename;
8+
int someoption = 0;
99
bool flag = false;
1010

1111
commandLine.option().withDescription("A required filename").required().bindTo(filename);
1212
commandLine.option("someoption").asShortName("s").withDefaultValue(10).withDescription("My description of someoption").bindTo(someoption);
1313
commandLine.option("flag").withDefaultValue(false).withDescription("My flag").bindTo(flag);
14-
1514
commandLine.parse(argc, argv);
15+
1616
return 0;
1717
}

0 commit comments

Comments
 (0)