practice_greedyTextJustific.../cpp_impl/src/main.cpp

14 lines
277 B
C++
Raw Normal View History

2021-05-10 05:32:47 +00:00
#include <iostream>
2021-05-10 05:16:10 +00:00
2021-05-10 05:32:47 +00:00
#include "argparse.hpp"
2021-05-10 05:16:10 +00:00
int main(int argc, char **argv) {
2021-05-10 05:32:47 +00:00
auto parsed = ArgParse::parseArgs(argc, argv, {"a", "b"}, {"apple"});
for(auto pair : parsed) {
std::cout << pair.first << ", " << pair.second << std::endl;
}
2021-05-10 05:16:10 +00:00
return 0;
}