-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 Copy deps to ./include/ to support add_subdirectory() usage
Reverts regression by 8550275
- Loading branch information
1 parent
aad636c
commit 2268bc0
Showing
4 changed files
with
32 additions
and
11 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
/build | ||
/include/clippson/*.h | ||
/include/clippson/json* |
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
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,19 @@ | ||
#include <clippson/clipp.h> | ||
#include <clippson/json.hpp> | ||
|
||
#include <iostream> | ||
|
||
int main(int argc, char* argv[]) { | ||
bool help; | ||
bool verbose; | ||
auto cli = ( | ||
clipp::option("-h", "--help").set(help).doc("print help"), | ||
clipp::option("-v", "--verbose").set(verbose) | ||
); | ||
clipp::parse(argc, argv, cli); | ||
nlohmann::json vm; | ||
vm["help"] = help; | ||
vm["verbose"] = verbose; | ||
std::cout << vm << std::endl; | ||
return 0; | ||
} |