cosmetics.

This commit is contained in:
Syoyo Fujita
2025-07-06 07:46:13 +09:00
parent 34b9d8b2dc
commit b00c2d11f6
2 changed files with 19 additions and 2 deletions

View File

@@ -9,6 +9,25 @@ int main(int argc, char **argv) {
using namespace tinyusdz;
argparser::ArgParser parser;
parser.add_option("--port", true, "Port number for the MCP server(default 8080)");
parser.add_option("--host", true, "Hostname(default `localhost`)");
if (argc < 2) {
std::cerr << "Usage: " << argv[0] << " [options]" << std::endl;
parser.print_help();
return -1;
}
if (!parser.parse(argc, argv)) {
std::cerr << "Error parsing arguments." << std::endl;
parser.print_help();
return -1;
}
parser.parse(argc, argv);
Layer empty;
tydra::EditHistory hist;