12 #include "flutter/fml/file.h"
26 stream <<
"SceneC is an offline 3D geometry file parser." << std::endl;
27 stream <<
"---------------------------------------------------------------"
29 stream <<
"Valid Argument are:" << std::endl;
30 stream <<
"--input=<source_file>" << std::endl;
31 stream <<
"[optional] --input-kind={";
33 stream << source_type.first <<
", ";
35 stream <<
"} (default: gltf)" << std::endl;
36 stream <<
"--output=<output_file>" << std::endl;
44 const fml::CommandLine& command_line) {
45 auto source_type_option =
46 command_line.GetOptionValueWithDefault(
"input-type",
"gltf");
51 return source_type_search->second;
55 : working_directory(
std::make_shared<fml::UniqueFD>(fml::OpenDirectory(
58 fml::FilePermission::kRead))),
59 source_file_name(command_line.GetOptionValueWithDefault(
"input",
"")),
61 output_file_name(command_line.GetOptionValueWithDefault(
"output",
"")) {
71 explain <<
"Unknown input type." << std::endl;
76 explain <<
"Could not figure out working directory." << std::endl;
81 explain <<
"Input file name was empty." << std::endl;
86 explain <<
"Target output file name was empty." << std::endl;