Commit 3ca1f760 authored by PIACIBELLO Cyrille's avatar PIACIBELLO Cyrille

Changes to changeFormat

parent 756ee978
...@@ -95,6 +95,11 @@ int main(int argc, char ** argv){ ...@@ -95,6 +95,11 @@ int main(int argc, char ** argv){
// //
if(FParameters::existParameter(argc, argv, "-fout")){ if(FParameters::existParameter(argc, argv, "-fout")){
std::string name(FParameters::getStr(argc,argv,"-fout", "output")); std::string name(FParameters::getStr(argc,argv,"-fout", "output"));
std::string ext(".");
if(name.find(ext) !=std::string::npos) {
std::cout << "No file with extension permitted for output name : " << name << std::endl;
exit(-1);
}
if( FParameters::existParameter(argc, argv, "-bin")){ if( FParameters::existParameter(argc, argv, "-bin")){
name += ".bfma"; name += ".bfma";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment