Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More tests, more fixes. Also added the beginnings of a hello world ex…
…ample.
- Loading branch information
Showing
7 changed files
with
281 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ macro(add_sample name) | |
endif () | ||
endmacro() | ||
|
||
#add_sample(TODO) | ||
add_sample(hello) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (C) 2020 T. Zachary Laine | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. (See | ||
// accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
#include <boost/program_options_2/parse_command_line.hpp> | ||
|
||
#include <iostream> | ||
|
||
|
||
namespace po2 = boost::program_options_2; | ||
|
||
int main(int argc, char const * argv[]) | ||
{ | ||
// TODO: Catch hana::tuple; use below. | ||
po2::parse_command_line( | ||
argc, argv, std::cerr, po2::positional<std::string_view>("addressee")); | ||
|
||
std::cout << "Hello, TODO!\n"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.