20 #include "cupsddialog.h" 24 #include <kcmdlineargs.h> 25 #include <kapplication.h> 27 static KCmdLineOptions options[] =
29 {
"+[file]", I18N_NOOP(
"Configuration file to load"), 0},
33 extern "C" KDE_EXPORT
int kdemain(
int argc,
char *argv[])
35 KCmdLineArgs::init(argc,argv,
"cupsdconf",
36 I18N_NOOP(
"A CUPS configuration tool"),
37 I18N_NOOP(
"A CUPS configuration tool"),
"0.0.1");
38 KCmdLineArgs::addCmdLineOptions(options);
40 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
43 if (args->count() > 0)
44 CupsdDialog::configure(args->url(0).path());
46 CupsdDialog::configure();