mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 12:13:52 +00:00
* meson: Basic meson support With this patch, CLI11 can be used as a meson subproject: http://mesonbuild.com/Subprojects.html However, CMake is still required for testing and installation. The current meson.build is not a complete replacement. * meson: Added meson test * Adding Azure test
12 lines
245 B
C++
12 lines
245 B
C++
#include <CLI/CLI.hpp>
|
|
|
|
int main(int argc, char **argv) {
|
|
CLI::App app{"App description"};
|
|
|
|
std::string filename = "default";
|
|
app.add_option("-f,--file", filename, "A help string");
|
|
|
|
CLI11_PARSE(app, argc, argv);
|
|
return 0;
|
|
}
|