86 if (!MARS::CheckRootVer())
89 MLog::RedirectErrorHandler(MLog::kColor);
94 MArgs arg(argc, argv);
99 if (arg.HasOnly(
"-V") || arg.HasOnly(
"--version"))
102 if (arg.HasOnly(
"-?") || arg.HasOnly(
"-h") || arg.HasOnly(
"--help"))
108 const Bool_t kDebugMem = arg.HasOnlyAndRemove(
"--debug-mem");
113 if (arg.GetNumArguments()>2)
115 gLog << warn <<
"WARNING - Wrong number of arguments..." << endl;
120 TString fname=arg.GetArgumentStr(0);
121 TString mod =arg.GetArgumentStr(1);
126 if (arg.GetNumOptions()>0)
128 gLog << warn <<
"WARNING - Unknown commandline options..." << endl;
129 arg.Print(
"options");
137 TApplication app(
"telesto", &argc, argv);
138 if (!gClient || gROOT->IsBatch())
140 gLog << err <<
"Bombing... maybe your DISPLAY variable is not set correctly!" << endl;
145 TObject::SetObjectStat(kTRUE);
153 if (TObject::GetObjectStat())
155 TObject::SetObjectStat(kFALSE);
156 gObjectTable->Print();
static void StartUpMessage()
void SetExitLoopOnClose(Bool_t b=kTRUE)