Build examples in CI using GitHub (#283)

* build examples in CI using github

* update cxxopts style
This commit is contained in:
Lars Melchior
2021-08-29 20:27:10 +02:00
committed by GitHub
parent 91585e3864
commit c5cb85b2f1
3 changed files with 38 additions and 51 deletions

View File

@@ -3,8 +3,14 @@
int main(int argc, char** argv) {
cxxopts::Options options("MyProgram", "One line description of MyProgram");
options.add_options()("h,help", "Show help")(
"d,debug", "Enable debugging")("f,file", "File name", cxxopts::value<std::string>());
// clang-format off
options.add_options()
("h,help", "Show help")
("d,debug", "Enable debugging")
("f,file", "File name", cxxopts::value<std::string>()
);
// clang-format on
auto result = options.parse(argc, argv);