Skip to content

Commit 159cb7d

Browse files
author
Fytch
committed
add bind to the samples
1 parent 1ef1eb6 commit 159cb7d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

sample.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ int main(int argc, char** argv) {
1212
.fallback(PLACEHOLDER)
1313
.callback([&]{ PLACEHOLDER; });
1414

15+
std::uint32_t PLACEHOLDER;
16+
auto& PLACEHOLDER = parser["PLACEHOLDER"]
17+
.abbreviation('PLACEHOLDER')
18+
.description("PLACEHOLDER")
19+
.bind(PLACEHOLDER);
20+
1521
auto& help = parser["help"]
1622
.abbreviation('?')
1723
.description("print this help screen");

sample_exceptions.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ try {
1515
.fallback(PLACEHOLDER)
1616
.callback([&]{ PLACEHOLDER; });
1717

18+
std::uint32_t PLACEHOLDER;
19+
auto& PLACEHOLDER = parser["PLACEHOLDER"]
20+
.abbreviation('PLACEHOLDER')
21+
.description("PLACEHOLDER")
22+
.bind(PLACEHOLDER);
23+
1824
auto& help = parser["help"]
1925
.abbreviation('?')
2026
.description("print this help screen");

0 commit comments

Comments
 (0)