rem: if ( args->isSet("date") ){   option = args->getOption("date");  if(variables.isVerbose()){ cout << "main.cpp::int main(int argc, char *argv[]) | Show date info and exit: (" << option << ")" << endl;
add: if ( args->isSet("date") ) { option = args->getOption("date"); if(variables.isVerbose()) { kdDebug() << "main.cpp::int main(int argc, char *argv[]) | Show date info and exit: (" << option << ")" << endl;
context: int main(int argc, char *argv[]){  KAboutData aboutData( "konsolekalendar", "KonsoleKalendar",    VERSION, description, KAboutData::License_GPL,    "(c) 2002, Tuukka Pasanen", 0, 0, "illuusio@mailcity.com");  aboutData.addAuthor("Tuukka Pasanen",0, "illuusio@mailcity.com");	KCmdLineArgs::init( argc, argv, &aboutData );  KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.  KCmdLineArgs *args = KCmdLineArgs::parsedArgs();	QString KalendarFile;  QDate date;  QString option;  KApplication app( false, false );		KalendarVariables variables;  if ( args->isSet("verbose") ){	       variables.setVerbose(true);  }   /*   *  Show next happening and exit   *   */	if ( args->isSet("next") ){			if(variables.isVerbose()){	cout << "main.cpp::int main(int argc, char *argv[]) | Show next happening in calendar and exit" << endl;			}		variables.setNext(true);  } /*  *  If we like to see some date  *  */	if ( args->isSet("date") ){	 option = args->getOption("date");			if(variables.isVerbose()){	cout << "main.cpp::int main(int argc, char *argv[]) | Show date info and exit: (" << option << ")" << endl;                 }	 date = variables.parseDate(option);			variables.setDate(date);	  } else {	variables.setDate(QDate::currentDate());  }  /*   *  Set starting date for calendar   *   */	if ( args->isSet("startdate") ){	  option = args->getOption("startdate");			if(variables.isVerbose()){	cout << "main.cpp::int main(int argc, char *argv[]) | Shows all entries from this date 30 days or to enddate: (" << option << ")" << endl;                  }	  date = variables.parseDate(option);			variables.setStartDate(date);	  }   /*   *  Set starting end date for calendar   *   */        if ( args->isSet("enddate") ){	QString option = args->getOption("enddate");			if(variables.isVerbose()){	cout << "main.cpp::int main(int argc, char *argv[]) | Shows all entries to this date: (" << option << ")" << endl;                  }		date = variables.parseDate(option);			variables.setEndDate(date);	  }    if( args->isSet("all") ){	variables.setAll( true );        } else {	variables.setAll( false );    }      if ( args->isSet("file") ){	option = args->getOption("file");		  variables.setCalendarFile(option);		if(variables.isVerbose()){	cout << "main.cpp::int main(int argc, char *argv[]) | using calendar at: (" << variables.getCalendarFile() << ")" << endl;                  }      } else{    KConfig cfg( locate( "config", "korganizerrc" ) );    cfg.setGroup("General");    KURL url( cfg.readEntry("Active Calendar") );    if ( url.isLocalFile() ) {      KalendarFile = url.path();          variables.setCalendarFile(KalendarFile);	      if(variables.isVerbose()){        cout << "main.cpp::int main(int argc, char *argv[]) | Calendar file currently is " << variables.getCalendarFile() << endl;      }    } else {      cout << "Remote files are not supported yet." << endl;    }  }  args->clear(); // Free up some memory.	//variables->setCalendarFile(KalendarFile);			KonsoleKalendar *konsolekalendar = new KonsoleKalendar(variables);	konsolekalendar->showInstance();	delete konsolekalendar;	// delete variables;	if(variables.isVerbose()){	cout << "main.cpp::int main(int argc, char *argv[]) | exiting" << endl;	}  //return a.exec();	return 0;}