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