--- trunk/SHAPES/shaper.cpp 2004/07/20 17:07:01 1359 +++ trunk/SHAPES/shaper.cpp 2004/07/20 20:02:15 1360 @@ -94,10 +94,10 @@ int main(int argc, char* argv[]){ if (cmdline_parser (argc, argv, &args_info) != 0) exit(1) ; - if (args_info.input_given){ - fileName = args_info.input_arg; - } - else{ + + if (args_info.inputs_num > 0) { + fileName = args_info.inputs[0]; + } else { std::cerr << "Does not have input file name" << endl; exit(1); } @@ -223,7 +223,7 @@ int main(int argc, char* argv[]){ strcpy(structureFileName, fileName.c_str() ); PDBReader* PDBread = new PDBReader(); - PDBread->setPDBfile(structureFileName); + PDBread->setPDBfileName(structureFileName); theAtoms = PDBread->getAtomList(); printf("Found %d atoms\n", theAtoms.size());