1 #include <QtGui/QApplication>
7 static struct option long_opts[] = {
8 { "loglevel", 1, 0, 'l' },
15 printf("usage: frm_gui [ options ]\n");
16 printf(" -l, --loglevel <number>|<domain>=<number>,...\n");
19 int main(int argc, char *argv[])
21 QApplication a(argc, argv);
25 while ((opt = getopt_long(argc, argv, "l:", &long_opts[0], NULL)) != EOF) {
28 ul_log_domain_arg2levels(optarg);
33 exit(opt == 'h' ? 0 : 1);