mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
cosmetics.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user