mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-21 01:47:28 -05:00
Build examples in CI using GitHub (#283)
* build examples in CI using github * update cxxopts style
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user