cpp
#include <iostream>
#include <gflags/gflags.h>
DEFINE_bool(verbose, false, "Enable verbose mode");
DEFINE_string(input, "", "Input file");
int main(int argc, char* argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
if (FLAGS_verbose) {
std::cout << "Verbose mode enabled" << std::endl;
}
if (!FLAGS_input.empty()) {
std::cout << "Input file: " << FLAGS_input << std::endl;
} else {
std::cout << "No input file specified" << std::endl;
}
return 0;
}