rem: KCmdLineArgs::addCmdLineOptions( options );
context: int main(int argc,char **argv){  KAboutData aboutData("knewstufftest","KNewStuff Test","0.1");  KCmdLineArgs::init(argc,argv,&aboutData);  KCmdLineArgs::addCmdLineOptions( options );  KApplication app;  KCmdLineArgs *args = KCmdLineArgs::parsedArgs();  MyWidget wid;  app.setMainWidget( &wid );  wid.show();#if 0  TestNewStuff newStuff;  if ( args->isSet( "upload" ) ) {    newStuff.upload();  } else if ( args->isSet( "download" ) ) {    newStuff.download();  } else {    kdDebug() << "Please pass --upload or --download option." << endl;  }#endif  app.exec();}