X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fappli%2FbbRegenerateBoxesLists%2FbbRegenerateBoxesLists.cpp;h=9ae1f0ff4dac36549899075057b56b791fbc5925;hb=a94262289f8148799f8e319c216d5af2a6053c18;hp=4b822522b855eddc350f6a137ee43c39621e4868;hpb=60666a9908c25344c96805d6b160cc723917fd3f;p=bbtk.git diff --git a/kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp b/kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp index 4b82252..9ae1f0f 100644 --- a/kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp +++ b/kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp @@ -7,7 +7,15 @@ int main(int argc, char **argv) { if (argc>1) { - bbtk::MessageManager::SetMessageLevel("max",0); + if (argv[1][1]=='q') + bbtk::MessageManager::SetMessageLevel("max",0); + else if (argv[1][1]=='v') + bbtk::MessageManager::SetMessageLevel("all",9); + else + { + std::cout << "usage : bbRegenerateBoxesLists [-q|-v] (quiet or verbose)" << std::endl; + return 0; + } } try @@ -15,20 +23,19 @@ int main(int argc, char **argv) bbtk::Interpreter::Pointer I = bbtk::Interpreter::New(); I->SetCommandLine(true); I->SetThrow(false); - - + std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path(); doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator(); doc_path += "bbdoc"; doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator(); - - I->InterpretLine( "exec freeze"); + + I->InterpretLine( "exec freeze_no_error"); I->InterpretLine( "include *"); - I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Initials,doc_path + "index-alpha.html"); - I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Packages,doc_path + "index-package.html"); - I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Categories,doc_path + "index-category.html"); - I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Adaptors,doc_path + "index-adaptors.html"); - + I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Initials, doc_path + "index-alpha.html"); + I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Packages, doc_path + "index-package.html"); + I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Categories, doc_path + "index-category.html"); + I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Adaptors, doc_path + "index-adaptors.html"); + } catch (bbtk::Exception e) {