1 /***************************************************************************
4 begin : Fre Dez 14 19:28:09 CET 2001
5 copyright : (C) 2001 by Arnold Kraschinski
6 email : arnold.k67@gmx.de
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #include <kcmdlineargs.h>
19 #include <kaboutdata.h>
23 static const char description
[] =
26 static KCmdLineOptions options
[] =
28 { "+[File]", I18N_NOOP("File to open"), 0 },
30 // INSERT YOUR COMMANDLINE OPTIONS HERE
35 int main(int argc
, char *argv
[])
38 KAboutData
aboutData( "kverbos", I18N_NOOP("KVerbos"),
39 VERSION
, description
, KAboutData::License_GPL
,
40 "(c) 2001, Arnold Kraschinski", 0, 0, "arnold.k67@gmx.de");
41 aboutData
.addAuthor("Arnold Kraschinski",0, "arnold.k67@gmx.de");
42 aboutData
.addCredit("David Vignoni", I18N_NOOP("svg icon"), "david80v@tin.it");
43 KCmdLineArgs::init( argc
, argv
, &aboutData
);
44 KCmdLineArgs::addCmdLineOptions( options
); // Add our own options.
54 KVerbosApp
*kverbos
= new KVerbosApp();
57 KCmdLineArgs
*args
= KCmdLineArgs::parsedArgs();
61 kverbos
->openDocumentFile(args
->url(0));
65 // Meiner Meinung nach geh�t die folgende Zeile nicht hier hin, weil hier das
66 // Programm durchl�ft, wenn kein Dateiname ber die Kommandozeile eingegeben
68 // kverbos->openDocumentFile();