int LgiMain(OsAppArguments &AppArgs) { GApp a("application/lrstrip", AppArgs); if (a.IsOk()) { App *w; a.AppWnd = w = new App; char In[256]; char Out[256]; char Langs[256]; if (LgiApp->GetOption("In", In) AND LgiApp->GetOption("Out", Out) AND LgiApp->GetOption("Langs", Langs)) { if (w->Load(In)) { if (stricmp(Langs, "all")) { w->Langs.Empty(); GToken l(Langs, " ,;"); for (int i=0; i<l.Length(); i++) { w->Langs.Add(l[i], true); } } w->Save(Out); } } else { w->DoModal(); } } return 0; }