| 84 | } |
| 85 | |
| 86 | static std::string get_command_line(int argc, char* argv[]) { |
| 87 | std::ostringstream command_line_oss; |
| 88 | for (int i = 0; i < argc; i++) { |
| 89 | if (!argv[i]) continue; |
| 90 | |
| 91 | if (i > 0) command_line_oss << ' '; |
| 92 | |
| 93 | if (std::strchr(argv[i], ' ')) |
| 94 | command_line_oss << '"' << argv[i] << '"'; |
| 95 | else |
| 96 | command_line_oss << argv[i]; |
| 97 | } |
| 98 | |
| 99 | return command_line_oss.str(); |
| 100 | } |
| 101 | |
| 102 | static void open_report_output(const LASwriteOpener& laswriteopener, FILE*& file_out, ValidateWriter*& writer, BOOL is_csv, BOOL consol_out) { |
| 103 | if (consol_out == FALSE) { |