obj2sdf -> don't crash when no name is given, remind user of --fileName=...
This commit is contained in:
@@ -40,7 +40,11 @@ int main(int argc, char* argv[])
|
|||||||
b3CommandLineArgs args(argc,argv);
|
b3CommandLineArgs args(argc,argv);
|
||||||
char* fileName;
|
char* fileName;
|
||||||
args.GetCmdLineArgument("fileName",fileName);
|
args.GetCmdLineArgument("fileName",fileName);
|
||||||
|
if (fileName==0)
|
||||||
|
{
|
||||||
|
printf("required --fileName=\"name\"");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
std::string matLibName = StripExtension(fileName);
|
std::string matLibName = StripExtension(fileName);
|
||||||
|
|
||||||
printf("fileName = %s\n", fileName);
|
printf("fileName = %s\n", fileName);
|
||||||
|
|||||||
Reference in New Issue
Block a user