rem: kdDebug() << "Input file: " << input << endl; kdDebug() << "Output file: " << output << endl;
add: kdDebug(5800) << "Input file: " << input << endl; kdDebug(5800) << "Output file: " << output << endl;
context: int main( int argc, char **argv ){  KAboutData aboutData( "readandwrite", "Read and Write Calendar", "0.1" );  KCmdLineArgs::init( argc, argv, &aboutData );  KCmdLineArgs::addCmdLineOptions( options );  KApplication app( false, false );  KCmdLineArgs *args = KCmdLineArgs::parsedArgs();  if ( args->count() != 2 ) {    args->usage( "Wrong number of arguments." );  }  QString input = QFile::decodeName( args->arg( 0 ) );  QString output = QFile::decodeName( args->arg( 1 ) );  QFileInfo outputFileInfo( output );  output = outputFileInfo.absFilePath();  kdDebug() << "Input file: " << input << endl;  kdDebug() << "Output file: " << output << endl;  CalendarLocal cal;  // Force save() to save in sorted order  extern bool KCal_CalendarLocal_saveOrdered;  KCal_CalendarLocal_saveOrdered = true;  if ( !cal.load( input ) ) return 1;  if ( !cal.save( output ) ) return 1;  return 0;}