/***************************************************************************
                          main.cpp  -  description
                             -------------------
    begin                : Son Nov 21 15:23:42 CET 1999
    copyright            : (C) 1999 by Stephan Kahnt
    email                : stephan.kahnt@ipk.fhg.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include "kash.h"
 
int main(int argc, char *argv[])
{
  KApplication app(argc, argv, "kash");
 
  if (app.isRestored())
  {
    RESTORE(KashApp);
  }
  else 
  {
    KashApp *kash = new KashApp();
    kash->show();

    if(argc>1)
    {
      kash->openDocumentFile(argv[1]);
    }
  }
  
  return app.exec();
}  

