Added CLI11 library via gitmodule

This commit is contained in:
2026-06-14 12:19:24 -04:00
parent b74b9127bc
commit a2ac669803
4 changed files with 25 additions and 4 deletions

View File

@@ -1,7 +1,19 @@
#include <iostream>
#include <ostream>
int main(int argc, char *argv[]) {
std::cout << "Hello, World" << std::endl;
#include <CLI/CLI.hpp>
#include <iostream>
#include <string>
int main(int argc, char **argv) {
CLI::App app{"Spotify Downloader"};
std::string url;
app.add_option("-u,--url", url, "Spotify item URL");
CLI11_PARSE(app, argc, argv);
if (!url.empty()) {
std::cout << "Target URL: " << url << "\n";
}
return 0;
}