12 absl::ParseCommandLine(__argc, __argv);
13 if (absl::GetFlag(FLAGS_file).empty()) {
14 printf(
"ERROR: No file specified\n");
15 printf(
"Usage: PanoptesScanCLI.exe -file <FILE_TO_SCAN> \n");
19 std::string fileToScan = absl::GetFlag(FLAGS_file);
24 std::cout <<
"An Error Occured:" <<
"\n" << results << std::endl;
29 if (results.empty()) {
33 std::cout <<
"An Error Occured:" <<
"\n" << results << std::endl;
37 if (results.empty()) {
38 std::cout <<
"Failed to get scan results\n" << std::endl;
44 nlohmann::json j = nlohmann::json::parse(results);
45 std::string prettyJson = j.dump(4,
' ',
true);
46 std::cout <<
"Scan Results:" <<
"\n" << prettyJson << std::endl;